var xc=e=>{throw TypeError(e)};var da=(e,t,n)=>t.has(e)||xc("Cannot "+n);var N=(e,t,n)=>(da(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>t.has(e)?xc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),$=(e,t,n,r)=>(da(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ee=(e,t,n)=>(da(e,t,"access private method"),n);var gs=(e,t,n,r)=>({set _(o){$(e,t,o,n)},get _(){return N(e,t,r)}});function zg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Tf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jf={exports:{}},Mi={},Rf={exports:{}},G={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ss=Symbol.for("react.element"),$g=Symbol.for("react.portal"),Bg=Symbol.for("react.fragment"),Ug=Symbol.for("react.strict_mode"),Vg=Symbol.for("react.profiler"),Hg=Symbol.for("react.provider"),Wg=Symbol.for("react.context"),Kg=Symbol.for("react.forward_ref"),Qg=Symbol.for("react.suspense"),Gg=Symbol.for("react.memo"),Yg=Symbol.for("react.lazy"),wc=Symbol.iterator;function qg(e){return e===null||typeof e!="object"?null:(e=wc&&e[wc]||e["@@iterator"],typeof e=="function"?e:null)}var Of={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mf=Object.assign,_f={};function to(e,t,n){this.props=e,this.context=t,this.refs=_f,this.updater=n||Of}to.prototype.isReactComponent={};to.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};to.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function If(){}If.prototype=to.prototype;function tu(e,t,n){this.props=e,this.context=t,this.refs=_f,this.updater=n||Of}var nu=tu.prototype=new If;nu.constructor=tu;Mf(nu,to.prototype);nu.isPureReactComponent=!0;var bc=Array.isArray,Ff=Object.prototype.hasOwnProperty,ru={current:null},Lf={key:!0,ref:!0,__self:!0,__source:!0};function Df(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Ff.call(t,r)&&!Lf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,D=P[H];if(0>>1;Ho(he,I))Peo(J,he)?(P[H]=J,P[Pe]=I,H=Pe):(P[H]=he,P[q]=I,H=q);else if(Peo(J,I))P[H]=J,P[Pe]=I,H=Pe;else break e}}return T}function o(P,T){var I=P.sortIndex-T.sortIndex;return I!==0?I:P.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],d=1,p=null,g=3,f=!1,b=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=P)r(u),T.sortIndex=T.expirationTime,t(l,T);else break;T=n(u)}}function C(P){if(y=!1,v(P),!b)if(n(l)!==null)b=!0,B(E);else{var T=n(u);T!==null&&V(C,T.startTime-P)}}function E(P,T){b=!1,y&&(y=!1,m(A),A=-1),f=!0;var I=g;try{for(v(T),p=n(l);p!==null&&(!(p.expirationTime>T)||P&&!z());){var H=p.callback;if(typeof H=="function"){p.callback=null,g=p.priorityLevel;var D=H(p.expirationTime<=T);T=e.unstable_now(),typeof D=="function"?p.callback=D:p===n(l)&&r(l),v(T)}else r(l);p=n(l)}if(p!==null)var Q=!0;else{var q=n(u);q!==null&&V(C,q.startTime-T),Q=!1}return Q}finally{p=null,g=I,f=!1}}var S=!1,k=null,A=-1,_=5,O=-1;function z(){return!(e.unstable_now()-O<_)}function L(){if(k!==null){var P=e.unstable_now();O=P;var T=!0;try{T=k(!0,P)}finally{T?K():(S=!1,k=null)}}else S=!1}var K;if(typeof h=="function")K=function(){h(L)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,Y=M.port2;M.port1.onmessage=L,K=function(){Y.postMessage(null)}}else K=function(){w(L,0)};function B(P){k=P,S||(S=!0,K())}function V(P,T){A=w(function(){P(e.unstable_now())},T)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){b||f||(b=!0,B(E))},e.unstable_forceFrameRate=function(P){0>P||125H?(P.sortIndex=I,t(u,P),n(l)===null&&P===n(u)&&(y?(m(A),A=-1):y=!0,V(C,I-H))):(P.sortIndex=D,t(l,P),b||f||(b=!0,B(E))),P},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(P){var T=g;return function(){var I=g;g=T;try{return P.apply(this,arguments)}finally{g=I}}}})(Hf);Vf.exports=Hf;var av=Vf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var lv=x,Ze=av;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wa=Object.prototype.hasOwnProperty,uv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ec={},Sc={};function cv(e){return Wa.call(Sc,e)?!0:Wa.call(Ec,e)?!1:uv.test(e)?Sc[e]=!0:(Ec[e]=!0,!1)}function dv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fv(e,t,n,r){if(t===null||typeof t>"u"||dv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new Le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ne[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var su=/[\-:]([a-z])/g;function iu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(su,iu);Ne[t]=new Le(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(su,iu);Ne[t]=new Le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(su,iu);Ne[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function au(e,t,n,r){var o=Ne.hasOwnProperty(t)?Ne[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==s[a]){var l=` `+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{ha=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bo(e):""}function pv(e){switch(e.tag){case 5:return bo(e.type);case 16:return bo("Lazy");case 13:return bo("Suspense");case 19:return bo("SuspenseList");case 0:case 2:case 15:return e=ma(e.type,!1),e;case 11:return e=ma(e.type.render,!1),e;case 1:return e=ma(e.type,!0),e;default:return""}}function Ya(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yr:return"Fragment";case vr:return"Portal";case Ka:return"Profiler";case lu:return"StrictMode";case Qa:return"Suspense";case Ga:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qf:return(e.displayName||"Context")+".Consumer";case Kf:return(e._context.displayName||"Context")+".Provider";case uu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cu:return t=e.displayName||null,t!==null?t:Ya(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return Ya(e(t))}catch{}}return null}function hv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ya(t);case 8:return t===lu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mv(e){var t=Yf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xs(e){e._valueTracker||(e._valueTracker=mv(e))}function qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ni(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function qa(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Nc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xf(e,t){t=t.checked,t!=null&&au(e,"checked",t,!1)}function Xa(e,t){Xf(e,t);var n=jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Za(e,t.type,n):t.hasOwnProperty("defaultValue")&&Za(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Za(e,t,n){(t!=="number"||ni(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Co=Array.isArray;function Tr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ws.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ko={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gv=["Webkit","ms","Moz","O"];Object.keys(ko).forEach(function(e){gv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ko[t]=ko[e]})});function tp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ko.hasOwnProperty(e)&&ko[e]?(""+t).trim():t+"px"}function np(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=tp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var vv=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tl(e,t){if(t){if(vv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function nl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rl=null;function du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ol=null,jr=null,Rr=null;function jc(e){if(e=ls(e)){if(typeof ol!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Di(t),ol(e.stateNode,e.type,t))}}function rp(e){jr?Rr?Rr.push(e):Rr=[e]:jr=e}function op(){if(jr){var e=jr,t=Rr;if(Rr=jr=null,jc(e),t)for(e=0;e>>=0,e===0?32:31-(Av(e)/Tv|0)|0}var bs=64,Cs=4194304;function Eo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ii(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Eo(a):(s&=i,s!==0&&(r=Eo(s)))}else i=n&~o,i!==0?r=Eo(i):s!==0&&(r=Eo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function is(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function Mv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Po),zc=" ",$c=!1;function Sp(e,t){switch(e){case"keyup":return ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xr=!1;function uy(e,t){switch(e){case"compositionend":return kp(t);case"keypress":return t.which!==32?null:($c=!0,zc);case"textInput":return e=t.data,e===zc&&$c?null:e;default:return null}}function cy(e,t){if(xr)return e==="compositionend"||!xu&&Sp(e,t)?(e=Cp(),Vs=gu=xn=null,xr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hc(n)}}function Tp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jp(){for(var e=window,t=ni();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ni(e.document)}return t}function wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xy(e){var t=jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Tp(n.ownerDocument.documentElement,n)){if(r!==null&&wu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Wc(n,s);var i=Wc(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wr=null,cl=null,To=null,dl=!1;function Kc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dl||wr==null||wr!==ni(r)||(r=wr,"selectionStart"in r&&wu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),To&&Uo(To,r)||(To=r,r=ui(cl,"onSelect"),0Er||(e.current=vl[Er],vl[Er]=null,Er--)}function ne(e,t){Er++,vl[Er]=e.current,e.current=t}var Rn={},Oe=Ln(Rn),Be=Ln(!1),tr=Rn;function Qr(e,t){var n=e.type.contextTypes;if(!n)return Rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ue(e){return e=e.childContextTypes,e!=null}function di(){se(Be),se(Oe)}function Jc(e,t,n){if(Oe.current!==Rn)throw Error(j(168));ne(Oe,t),ne(Be,n)}function zp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,hv(e)||"Unknown",o));return ce({},n,r)}function fi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rn,tr=Oe.current,ne(Oe,e),ne(Be,Be.current),!0}function ed(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=zp(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,se(Be),se(Oe),ne(Oe,e)):se(Be),ne(Be,n)}var $t=null,zi=!1,Ta=!1;function $p(e){$t===null?$t=[e]:$t.push(e)}function Ry(e){zi=!0,$p(e)}function Dn(){if(!Ta&&$t!==null){Ta=!0;var e=0,t=ee;try{var n=$t;for(ee=1;e>=i,o-=i,Ut=1<<32-xt(t)+o|n<A?(_=k,k=null):_=k.sibling;var O=g(m,k,v[A],C);if(O===null){k===null&&(k=_);break}e&&k&&O.alternate===null&&t(m,k),h=s(O,h,A),S===null?E=O:S.sibling=O,S=O,k=_}if(A===v.length)return n(m,k),ae&&Un(m,A),E;if(k===null){for(;AA?(_=k,k=null):_=k.sibling;var z=g(m,k,O.value,C);if(z===null){k===null&&(k=_);break}e&&k&&z.alternate===null&&t(m,k),h=s(z,h,A),S===null?E=z:S.sibling=z,S=z,k=_}if(O.done)return n(m,k),ae&&Un(m,A),E;if(k===null){for(;!O.done;A++,O=v.next())O=p(m,O.value,C),O!==null&&(h=s(O,h,A),S===null?E=O:S.sibling=O,S=O);return ae&&Un(m,A),E}for(k=r(m,k);!O.done;A++,O=v.next())O=f(k,m,A,O.value,C),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?A:O.key),h=s(O,h,A),S===null?E=O:S.sibling=O,S=O);return e&&k.forEach(function(L){return t(m,L)}),ae&&Un(m,A),E}function w(m,h,v,C){if(typeof v=="object"&&v!==null&&v.type===yr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ys:e:{for(var E=v.key,S=h;S!==null;){if(S.key===E){if(E=v.type,E===yr){if(S.tag===7){n(m,S.sibling),h=o(S,v.props.children),h.return=m,m=h;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===un&&rd(E)===S.type){n(m,S.sibling),h=o(S,v.props),h.ref=go(m,S,v),h.return=m,m=h;break e}n(m,S);break}else t(m,S);S=S.sibling}v.type===yr?(h=er(v.props.children,m.mode,C,v.key),h.return=m,m=h):(C=Xs(v.type,v.key,v.props,null,m.mode,C),C.ref=go(m,h,v),C.return=m,m=C)}return i(m);case vr:e:{for(S=v.key;h!==null;){if(h.key===S)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(m,h.sibling),h=o(h,v.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=La(v,m.mode,C),h.return=m,m=h}return i(m);case un:return S=v._init,w(m,h,S(v._payload),C)}if(Co(v))return b(m,h,v,C);if(co(v))return y(m,h,v,C);Ts(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,v),h.return=m,m=h):(n(m,h),h=Fa(v,m.mode,C),h.return=m,m=h),i(m)):n(m,h)}return w}var Yr=Hp(!0),Wp=Hp(!1),mi=Ln(null),gi=null,Nr=null,Su=null;function ku(){Su=Nr=gi=null}function Nu(e){var t=mi.current;se(mi),e._currentValue=t}function wl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mr(e,t){gi=e,Su=Nr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function at(e){var t=e._currentValue;if(Su!==e)if(e={context:e,memoizedValue:t,next:null},Nr===null){if(gi===null)throw Error(j(308));Nr=e,gi.dependencies={lanes:0,firstContext:e}}else Nr=Nr.next=e;return t}var Wn=null;function Pu(e){Wn===null?Wn=[e]:Wn.push(e)}function Kp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Pu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Qt(e,r)}function Qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cn=!1;function Au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ht(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Qt(e,n)}return o=r.interleaved,o===null?(t.next=t,Pu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Qt(e,n)}function Ws(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pu(e,n)}}function od(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vi(e,t,n,r){var o=e.updateQueue;cn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var p=o.baseState;i=0,d=u=l=null,a=s;do{var g=a.lane,f=a.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,y=a;switch(g=t,f=n,y.tag){case 1:if(b=y.payload,typeof b=="function"){p=b.call(f,p,g);break e}p=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=y.payload,g=typeof b=="function"?b.call(f,p,g):b,g==null)break e;p=ce({},p,g);break e;case 2:cn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[a]:g.push(a))}else f={eventTime:f,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=f,l=p):d=d.next=f,i|=g;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;g=a,a=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(d===null&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);or|=i,e.lanes=i,e.memoizedState=p}}function sd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ra.transition;Ra.transition={};try{e(!1),t()}finally{ee=n,Ra.transition=r}}function ch(){return lt().memoizedState}function Iy(e,t,n){var r=An(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dh(e))fh(t,n);else if(n=Kp(e,t,n,r),n!==null){var o=Ie();wt(n,e,r,o),ph(n,t,r)}}function Fy(e,t,n){var r=An(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dh(e))fh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,bt(a,i)){var l=t.interleaved;l===null?(o.next=o,Pu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Kp(e,t,o,r),n!==null&&(o=Ie(),wt(n,e,r,o),ph(n,t,r))}}function dh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function fh(e,t){jo=xi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ph(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pu(e,n)}}var wi={readContext:at,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},Ly={readContext:at,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:ad,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qs(4194308,4,sh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qs(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Iy.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:id,useDebugValue:Fu,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=id(!1),t=e[0];return e=_y.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Nt();if(ae){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Ce===null)throw Error(j(349));rr&30||Xp(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,ad(Jp.bind(null,r,s,e),[e]),r.flags|=2048,qo(9,Zp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Nt(),t=Ce.identifierPrefix;if(ae){var n=Vt,r=Ut;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Go++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[jt]=t,e[Wo]=r,Eh(e,t,!1,!1),t.stateNode=e;e:{switch(i=nl(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oZr&&(t.flags|=128,r=!0,vo(s,!1),t.lanes=4194304)}else{if(!r)if(e=yi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ae)return Te(t),null}else 2*pe()-s.renderingStartTime>Zr&&n!==1073741824&&(t.flags|=128,r=!0,vo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=pe(),t.sibling=null,n=le.current,ne(le,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return Uu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function Wy(e,t){switch(Cu(t),t.tag){case 1:return Ue(t.type)&&di(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qr(),se(Be),se(Oe),Ru(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ju(t),null;case 13:if(se(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(le),null;case 4:return qr(),null;case 10:return Nu(t.type._context),null;case 22:case 23:return Uu(),null;case 24:return null;default:return null}}var Rs=!1,Re=!1,Ky=typeof WeakSet=="function"?WeakSet:Set,F=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Tl(e,t,n){try{n()}catch(r){fe(e,t,r)}}var yd=!1;function Qy(e,t){if(fl=ai,e=jp(),wu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,d=0,p=e,g=null;t:for(;;){for(var f;p!==n||o!==0&&p.nodeType!==3||(a=i+o),p!==s||r!==0&&p.nodeType!==3||(l=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(f=p.firstChild)!==null;)g=p,p=f;for(;;){if(p===e)break t;if(g===n&&++u===o&&(a=i),g===s&&++d===r&&(l=i),(f=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(pl={focusedElem:e,selectionRange:n},ai=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,w=b.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:ht(t.type,y),w);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(C){fe(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return b=yd,yd=!1,b}function Ro(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Tl(t,n,s)}o=o.next}while(o!==r)}}function Ui(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Nh(e){var t=e.alternate;t!==null&&(e.alternate=null,Nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Wo],delete t[gl],delete t[Ty],delete t[jy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ph(e){return e.tag===5||e.tag===3||e.tag===4}function xd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ph(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ci));else if(r!==4&&(e=e.child,e!==null))for(Rl(e,t,n),e=e.sibling;e!==null;)Rl(e,t,n),e=e.sibling}function Ol(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ol(e,t,n),e=e.sibling;e!==null;)Ol(e,t,n),e=e.sibling}var Se=null,vt=!1;function on(e,t,n){for(n=n.child;n!==null;)Ah(e,t,n),n=n.sibling}function Ah(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(_i,n)}catch{}switch(n.tag){case 5:Re||Pr(n,t);case 6:var r=Se,o=vt;Se=null,on(e,t,n),Se=r,vt=o,Se!==null&&(vt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(vt?(e=Se,n=n.stateNode,e.nodeType===8?Aa(e.parentNode,n):e.nodeType===1&&Aa(e,n),$o(e)):Aa(Se,n.stateNode));break;case 4:r=Se,o=vt,Se=n.stateNode.containerInfo,vt=!0,on(e,t,n),Se=r,vt=o;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Tl(n,t,i),o=o.next}while(o!==r)}on(e,t,n);break;case 1:if(!Re&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){fe(n,t,a)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,on(e,t,n),Re=r):on(e,t,n);break;default:on(e,t,n)}}function wd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ky),t.forEach(function(r){var o=n0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Yy(r/1960))-r,10e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,Ei=0,Z&6)throw Error(j(331));var o=Z;for(Z|=4,F=e.current;F!==null;){var s=F,i=s.child;if(F.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lpe()-$u?Jn(e,0):zu|=n),Ve(e,t)}function Fh(e,t){t===0&&(e.mode&1?(t=Cs,Cs<<=1,!(Cs&130023424)&&(Cs=4194304)):t=1);var n=Ie();e=Qt(e,t),e!==null&&(is(e,t,n),Ve(e,n))}function t0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fh(e,n)}function n0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),Fh(e,n)}var Lh;Lh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,Vy(e,t,n);$e=!!(e.flags&131072)}else $e=!1,ae&&t.flags&1048576&&Bp(t,hi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gs(e,t),e=t.pendingProps;var o=Qr(t,Oe.current);Mr(t,n),o=Mu(null,t,r,e,o,n);var s=_u();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(r)?(s=!0,fi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Au(t),o.updater=Bi,t.stateNode=o,o._reactInternals=t,Cl(t,r,e,n),t=kl(null,t,r,!0,s,n)):(t.tag=0,ae&&s&&bu(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=o0(r),e=ht(r,e),o){case 0:t=Sl(null,t,r,e,n);break e;case 1:t=md(null,t,r,e,n);break e;case 11:t=pd(null,t,r,e,n);break e;case 14:t=hd(null,t,r,ht(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Sl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),md(e,t,r,o,n);case 3:e:{if(wh(t),e===null)throw Error(j(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Qp(e,t),vi(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Xr(Error(j(423)),t),t=gd(e,t,r,n,o);break e}else if(r!==o){o=Xr(Error(j(424)),t),t=gd(e,t,r,n,o);break e}else for(Ye=kn(t.stateNode.containerInfo.firstChild),qe=t,ae=!0,yt=null,n=Wp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gr(),r===o){t=Gt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Gp(t),e===null&&xl(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,hl(r,o)?i=null:s!==null&&hl(r,s)&&(t.flags|=32),xh(e,t),Me(e,t,i,n),t.child;case 6:return e===null&&xl(t),null;case 13:return bh(e,t,n);case 4:return Tu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),pd(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ne(mi,r._currentValue),r._currentValue=i,s!==null)if(bt(s.value,i)){if(s.children===o.children&&!Be.current){t=Gt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Ht(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),wl(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(j(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),wl(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mr(t,n),o=at(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=ht(r,t.pendingProps),o=ht(r.type,o),hd(e,t,r,o,n);case 15:return vh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Gs(e,t),t.tag=1,Ue(r)?(e=!0,fi(t)):e=!1,Mr(t,n),hh(t,r,o),Cl(t,r,o,n),kl(null,t,r,!0,e,n);case 19:return Ch(e,t,n);case 22:return yh(e,t,n)}throw Error(j(156,t.tag))};function Dh(e,t){return dp(e,t)}function r0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,r){return new r0(e,t,n,r)}function Hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function o0(e){if(typeof e=="function")return Hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uu)return 11;if(e===cu)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xs(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Hu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case yr:return er(n.children,o,s,t);case lu:i=8,o|=8;break;case Ka:return e=st(12,n,t,o|2),e.elementType=Ka,e.lanes=s,e;case Qa:return e=st(13,n,t,o),e.elementType=Qa,e.lanes=s,e;case Ga:return e=st(19,n,t,o),e.elementType=Ga,e.lanes=s,e;case Gf:return Hi(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kf:i=10;break e;case Qf:i=9;break e;case uu:i=11;break e;case cu:i=14;break e;case un:i=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=st(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function er(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Hi(e,t,n,r){return e=st(22,e,r,t),e.elementType=Gf,e.lanes=n,e.stateNode={isHidden:!1},e}function Fa(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function La(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function s0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=va(0),this.expirationTimes=va(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=va(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wu(e,t,n,r,o,s,i,a,l){return e=new s0(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=st(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Au(s),e}function i0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uh)}catch(e){console.error(e)}}Uh(),Uf.exports=Je;var cs=Uf.exports;const Vh=Tf(cs);var Hh,Ad=cs;Hh=Ad.createRoot,Ad.hydrateRoot;const d0=1,f0=1e6;let Da=0;function p0(){return Da=(Da+1)%Number.MAX_SAFE_INTEGER,Da.toString()}const za=new Map,Td=e=>{if(za.has(e))return;const t=setTimeout(()=>{za.delete(e),_o({type:"REMOVE_TOAST",toastId:e})},f0);za.set(e,t)},h0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,d0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Td(n):e.toasts.forEach(r=>{Td(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Zs=[];let Js={toasts:[]};function _o(e){Js=h0(Js,e),Zs.forEach(t=>{t(Js)})}function m0({...e}){const t=p0(),n=o=>_o({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>_o({type:"DISMISS_TOAST",toastId:t});return _o({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function g0(){const[e,t]=x.useState(Js);return x.useEffect(()=>(Zs.push(t),()=>{const n=Zs.indexOf(t);n>-1&&Zs.splice(n,1)}),[e]),{...e,toast:m0,dismiss:n=>_o({type:"DISMISS_TOAST",toastId:n})}}function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function jd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wh(...e){return t=>{let n=!1;const r=e.map(o=>{const s=jd(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o{var m;const{scope:g,children:f,...b}=p,y=((m=g==null?void 0:g[e])==null?void 0:m[l])||a,w=x.useMemo(()=>b,Object.values(b));return c.jsx(y.Provider,{value:w,children:f})};u.displayName=s+"Provider";function d(p,g){var y;const f=((y=g==null?void 0:g[e])==null?void 0:y[l])||a,b=x.useContext(f);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>x.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,v0(o,...t)]}function v0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(s)[`__scope${u}`];return{...a,...p}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ll(e){const t=y0(e),n=x.forwardRef((r,o)=>{const{children:s,...i}=r,a=x.Children.toArray(s),l=a.find(w0);if(l){const u=l.props.children,d=a.map(p=>p===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...i,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function y0(e){const t=x.forwardRef((n,r)=>{const{children:o,...s}=n;if(x.isValidElement(o)){const i=C0(o),a=b0(s,o.props);return o.type!==x.Fragment&&(a.ref=r?Wh(r,i):i),x.cloneElement(o,a)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kh=Symbol("radix.slottable");function x0(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Kh,t}function w0(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kh}function b0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function C0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function E0(e){const t=e+"CollectionProvider",[n,r]=Yi(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:w,children:m}=y,h=R.useRef(null),v=R.useRef(new Map).current;return c.jsx(o,{scope:w,itemMap:v,collectionRef:h,children:m})};i.displayName=t;const a=e+"CollectionSlot",l=Ll(a),u=R.forwardRef((y,w)=>{const{scope:m,children:h}=y,v=s(a,m),C=Ct(w,v.collectionRef);return c.jsx(l,{ref:C,children:h})});u.displayName=a;const d=e+"CollectionItemSlot",p="data-radix-collection-item",g=Ll(d),f=R.forwardRef((y,w)=>{const{scope:m,children:h,...v}=y,C=R.useRef(null),E=Ct(w,C),S=s(d,m);return R.useEffect(()=>(S.itemMap.set(C,{ref:C,...v}),()=>void S.itemMap.delete(C))),c.jsx(g,{[p]:"",ref:E,children:h})});f.displayName=d;function b(y){const w=s(e+"CollectionConsumer",y);return R.useCallback(()=>{const h=w.collectionRef.current;if(!h)return[];const v=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((S,k)=>v.indexOf(S.ref.current)-v.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},b,r]}var S0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=S0.reduce((e,t)=>{const n=Ll(`Primitive.${t}`),r=x.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qh(e,t){e&&cs.flushSync(()=>e.dispatchEvent(t))}function On(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function k0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var N0="DismissableLayer",Dl="dismissableLayer.update",P0="dismissableLayer.pointerDownOutside",A0="dismissableLayer.focusOutside",Rd,Gh=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yu=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=x.useContext(Gh),[d,p]=x.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),b=Ct(t,k=>p(k)),y=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=y.indexOf(w),h=d?y.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,C=h>=m,E=j0(k=>{const A=k.target,_=[...u.branches].some(O=>O.contains(A));!C||_||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},g),S=R0(k=>{const A=k.target;[...u.branches].some(O=>O.contains(A))||(s==null||s(k),i==null||i(k),k.defaultPrevented||a==null||a())},g);return k0(k=>{h===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},g),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Rd=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Od(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Rd)}},[d,g,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Od())},[d,u]),x.useEffect(()=>{const k=()=>f({});return document.addEventListener(Dl,k),()=>document.removeEventListener(Dl,k)},[]),c.jsx(We.div,{...l,ref:b,style:{pointerEvents:v?C?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,E.onPointerDownCapture)})});Yu.displayName=N0;var T0="DismissableLayerBranch",Yh=x.forwardRef((e,t)=>{const n=x.useContext(Gh),r=x.useRef(null),o=Ct(t,r);return x.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(We.div,{...e,ref:o})});Yh.displayName=T0;function j0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){qh(P0,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function R0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=x.useRef(!1);return x.useEffect(()=>{const o=s=>{s.target&&!r.current&&qh(A0,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Od(){const e=new CustomEvent(Dl);document.dispatchEvent(e)}function qh(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qh(o,s):o.dispatchEvent(s)}var O0=Yu,M0=Yh,Mn=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},_0="Portal",Xh=x.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=x.useState(!1);Mn(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Vh.createPortal(c.jsx(We.div,{...r,ref:t}),i):null});Xh.displayName=_0;function I0(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var qu=e=>{const{present:t,children:n}=e,r=F0(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),s=Ct(r.ref,L0(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:s}):null};qu.displayName="Presence";function F0(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),s=x.useRef("none"),i=e?"mounted":"unmounted",[a,l]=I0(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=_s(r.current);s.current=a==="mounted"?u:"none"},[a]),Mn(()=>{const u=r.current,d=o.current;if(d!==e){const g=s.current,f=_s(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&g!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Mn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=f=>{const y=_s(r.current).includes(f.animationName);if(f.target===t&&y&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=f=>{f.target===t&&(s.current=_s(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function _s(e){return(e==null?void 0:e.animationName)||"none"}function L0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var D0=$f[" useInsertionEffect ".trim().toString()]||Mn;function z0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=$0({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=x.useCallback(d=>{var p;if(a){const g=B0(d)?d(e):d;g!==e&&((p=i.current)==null||p.call(i,g))}else s(d)},[a,e,s,i]);return[l,u]}function $0({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),s=x.useRef(t);return D0(()=>{s.current=t},[t]),x.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function B0(e){return typeof e=="function"}var U0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),V0="VisuallyHidden",qi=x.forwardRef((e,t)=>c.jsx(We.span,{...e,ref:t,style:{...U0,...e.style}}));qi.displayName=V0;var H0=qi,Xu="ToastProvider",[Zu,W0,K0]=E0("Toast"),[Zh,lC]=Yi("Toast",[K0]),[Q0,Xi]=Zh(Xu),Jh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=x.useState(null),[u,d]=x.useState(0),p=x.useRef(!1),g=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Xu}\`. Expected non-empty \`string\`.`),c.jsx(Zu.Provider,{scope:t,children:c.jsx(Q0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>d(f=>f+1),[]),onToastRemove:x.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g,children:i})})};Jh.displayName=Xu;var em="ToastViewport",G0=["F8"],zl="toast.viewportPause",$l="toast.viewportResume",tm=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=G0,label:o="Notifications ({hotkey})",...s}=e,i=Xi(em,n),a=W0(n),l=x.useRef(null),u=x.useRef(null),d=x.useRef(null),p=x.useRef(null),g=Ct(t,p,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;x.useEffect(()=>{const w=m=>{var v;r.length!==0&&r.every(C=>m[C]||m.code===C)&&((v=p.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=l.current,m=p.current;if(b&&w&&m){const h=()=>{if(!i.isClosePausedRef.current){const S=new CustomEvent(zl);m.dispatchEvent(S),i.isClosePausedRef.current=!0}},v=()=>{if(i.isClosePausedRef.current){const S=new CustomEvent($l);m.dispatchEvent(S),i.isClosePausedRef.current=!1}},C=S=>{!w.contains(S.relatedTarget)&&v()},E=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",h),w.addEventListener("focusout",C),w.addEventListener("pointermove",h),w.addEventListener("pointerleave",E),window.addEventListener("blur",h),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",h),w.removeEventListener("focusout",C),w.removeEventListener("pointermove",h),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",h),window.removeEventListener("focus",v)}}},[b,i.isClosePausedRef]);const y=x.useCallback(({tabbingDirection:w})=>{const h=a().map(v=>{const C=v.ref.current,E=[C,...ax(C)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?h.reverse():h).flat()},[a]);return x.useEffect(()=>{const w=p.current;if(w){const m=h=>{var E,S,k;const v=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!v){const A=document.activeElement,_=h.shiftKey;if(h.target===w&&_){(E=u.current)==null||E.focus();return}const L=y({tabbingDirection:_?"backwards":"forwards"}),K=L.findIndex(M=>M===A);$a(L.slice(K+1))?h.preventDefault():_?(S=u.current)==null||S.focus():(k=d.current)==null||k.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[a,y]),c.jsxs(M0,{ref:l,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&c.jsx(Bl,{ref:u,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"forwards"});$a(w)}}),c.jsx(Zu.Slot,{scope:n,children:c.jsx(We.ol,{tabIndex:-1,...s,ref:g})}),b&&c.jsx(Bl,{ref:d,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"backwards"});$a(w)}})]})});tm.displayName=em;var nm="ToastFocusProxy",Bl=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=Xi(nm,n);return c.jsx(qi,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});Bl.displayName=nm;var ds="Toast",Y0="toast.swipeStart",q0="toast.swipeMove",X0="toast.swipeCancel",Z0="toast.swipeEnd",rm=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=z0({prop:r,defaultProp:o??!0,onChange:s,caller:ds});return c.jsx(qu,{present:n||a,children:c.jsx(tx,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:On(e.onPause),onResume:On(e.onResume),onSwipeStart:ye(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ye(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});rm.displayName=ds;var[J0,ex]=Zh(ds,{onClose(){}}),tx=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:f,...b}=e,y=Xi(ds,n),[w,m]=x.useState(null),h=Ct(t,M=>m(M)),v=x.useRef(null),C=x.useRef(null),E=o||y.duration,S=x.useRef(0),k=x.useRef(E),A=x.useRef(0),{onToastAdd:_,onToastRemove:O}=y,z=On(()=>{var Y;(w==null?void 0:w.contains(document.activeElement))&&((Y=y.viewport)==null||Y.focus()),i()}),L=x.useCallback(M=>{!M||M===1/0||(window.clearTimeout(A.current),S.current=new Date().getTime(),A.current=window.setTimeout(z,M))},[z]);x.useEffect(()=>{const M=y.viewport;if(M){const Y=()=>{L(k.current),u==null||u()},B=()=>{const V=new Date().getTime()-S.current;k.current=k.current-V,window.clearTimeout(A.current),l==null||l()};return M.addEventListener(zl,B),M.addEventListener($l,Y),()=>{M.removeEventListener(zl,B),M.removeEventListener($l,Y)}}},[y.viewport,E,l,u,L]),x.useEffect(()=>{s&&!y.isClosePausedRef.current&&L(E)},[s,E,y.isClosePausedRef,L]),x.useEffect(()=>(_(),()=>O()),[_,O]);const K=x.useMemo(()=>w?cm(w):null,[w]);return y.viewport?c.jsxs(c.Fragment,{children:[K&&c.jsx(nx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),c.jsx(J0,{scope:n,onClose:z,children:cs.createPortal(c.jsx(Zu.ItemSlot,{scope:n,children:c.jsx(O0,{asChild:!0,onEscapeKeyDown:ye(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||z(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(We.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection,...b,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:ye(e.onPointerDown,M=>{M.button===0&&(v.current={x:M.clientX,y:M.clientY})}),onPointerMove:ye(e.onPointerMove,M=>{if(!v.current)return;const Y=M.clientX-v.current.x,B=M.clientY-v.current.y,V=!!C.current,P=["left","right"].includes(y.swipeDirection),T=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,I=P?T(0,Y):0,H=P?0:T(0,B),D=M.pointerType==="touch"?10:2,Q={x:I,y:H},q={originalEvent:M,delta:Q};V?(C.current=Q,Is(q0,p,q,{discrete:!1})):Md(Q,y.swipeDirection,D)?(C.current=Q,Is(Y0,d,q,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Y)>D||Math.abs(B)>D)&&(v.current=null)}),onPointerUp:ye(e.onPointerUp,M=>{const Y=C.current,B=M.target;if(B.hasPointerCapture(M.pointerId)&&B.releasePointerCapture(M.pointerId),C.current=null,v.current=null,Y){const V=M.currentTarget,P={originalEvent:M,delta:Y};Md(Y,y.swipeDirection,y.swipeThreshold)?Is(Z0,f,P,{discrete:!0}):Is(X0,g,P,{discrete:!0}),V.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),nx=e=>{const{__scopeToast:t,children:n,...r}=e,o=Xi(ds,t),[s,i]=x.useState(!1),[a,l]=x.useState(!1);return sx(()=>i(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Xh,{asChild:!0,children:c.jsx(qi,{...r,children:s&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},rx="ToastTitle",om=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(We.div,{...r,ref:t})});om.displayName=rx;var ox="ToastDescription",sm=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(We.div,{...r,ref:t})});sm.displayName=ox;var im="ToastAction",am=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(um,{altText:n,asChild:!0,children:c.jsx(Ju,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${im}\`. Expected non-empty \`string\`.`),null)});am.displayName=im;var lm="ToastClose",Ju=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=ex(lm,n);return c.jsx(um,{asChild:!0,children:c.jsx(We.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});Ju.displayName=lm;var um=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),ix(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...cm(r))}}),t}function Is(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qh(o,s):o.dispatchEvent(s)}var Md=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function sx(e=()=>{}){const t=On(e);Mn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function ix(e){return e.nodeType===e.ELEMENT_NODE}function ax(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $a(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var lx=Jh,dm=tm,fm=rm,pm=om,hm=sm,mm=am,gm=Ju;function vm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Id=ym,ux=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Id(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=s==null?void 0:s[u];if(d===null)return null;const g=_d(d)||_d(p);return o[u][g]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,g]=d;return g===void 0||(u[p]=g),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:g,...f}=d;return Object.entries(f).every(b=>{let[y,w]=b;return Array.isArray(w)?w.includes({...s,...a}[y]):{...s,...a}[y]===w})?[...u,p,g]:u},[]);return Id(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var dx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fx=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>x.createElement("svg",{ref:l,...dx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xm("lucide",o),...a},[...i.map(([u,d])=>x.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ge=(e,t)=>{const n=x.forwardRef(({className:r,...o},s)=>x.createElement(fx,{ref:s,iconNode:t,className:xm(`lucide-${cx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wm=ge("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const px=ge("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hx=ge("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mx=ge("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gx=ge("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vx=ge("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yx=ge("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fd=ge("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xx=ge("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ld=ge("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wx=ge("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bm=ge("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bx=ge("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cx=ge("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cm=ge("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ex=ge("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dd=ge("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sx=ge("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Em=ge("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sm=ge("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ec="-",kx=e=>{const t=Px(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(ec);return a[0]===""&&a.length!==1&&a.shift(),km(a,t)||Nx(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},km=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?km(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(ec);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},zd=/^\[(.+)\]$/,Nx=e=>{if(zd.test(e)){const t=zd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Px=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Tx(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ul(i,r,s,t)}),r},Ul=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:$d(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Ax(o)){Ul(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ul(i,$d(t,s),n,r)})})},$d=(e,t)=>{let n=e;return t.split(ec).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ax=e=>e.isThemeGetter,Tx=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,jx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Nm="!",Rx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,d=0,p;for(let w=0;wd?p-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:i}):i},Ox=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Mx=e=>({cache:jx(e.cacheSize),parseClassName:Rx(e),...kx(e)}),_x=/\s+/,Ix=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(_x);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=n(u);let b=!!f,y=r(b?g.substring(0,f):g);if(!y){if(!b){a=u+(a.length>0?" "+a:a);continue}if(y=r(g),!y){a=u+(a.length>0?" "+a:a);continue}b=!1}const w=Ox(d).join(":"),m=p?w+Nm:w,h=m+y;if(s.includes(h))continue;s.push(h);const v=o(y,b);for(let C=0;C0?" "+a:a)}return a};function Fx(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(d),e());return n=Mx(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=Ix(l,n);return o(l,d),d}return function(){return s(Fx.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Am=/^\[(?:([a-z-]+):)?(.+)\]$/i,Dx=/^\d+\/\d+$/,zx=new Set(["px","full","screen"]),$x=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ux=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Lt=e=>Ir(e)||zx.has(e)||Dx.test(e),sn=e=>oo(e,"length",Zx),Ir=e=>!!e&&!Number.isNaN(Number(e)),Ba=e=>oo(e,"number",Ir),xo=e=>!!e&&Number.isInteger(Number(e)),Wx=e=>e.endsWith("%")&&Ir(e.slice(0,-1)),W=e=>Am.test(e),an=e=>$x.test(e),Kx=new Set(["length","size","percentage"]),Qx=e=>oo(e,Kx,Tm),Gx=e=>oo(e,"position",Tm),Yx=new Set(["image","url"]),qx=e=>oo(e,Yx,ew),Xx=e=>oo(e,"",Jx),wo=()=>!0,oo=(e,t,n)=>{const r=Am.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Zx=e=>Bx.test(e)&&!Ux.test(e),Tm=()=>!1,Jx=e=>Vx.test(e),ew=e=>Hx.test(e),tw=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),s=re("borderRadius"),i=re("borderSpacing"),a=re("borderWidth"),l=re("contrast"),u=re("grayscale"),d=re("hueRotate"),p=re("invert"),g=re("gap"),f=re("gradientColorStops"),b=re("gradientColorStopPositions"),y=re("inset"),w=re("margin"),m=re("opacity"),h=re("padding"),v=re("saturate"),C=re("scale"),E=re("sepia"),S=re("skew"),k=re("space"),A=re("translate"),_=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",W,t],L=()=>[W,t],K=()=>["",Lt,sn],M=()=>["auto",Ir,W],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",W],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Ir,W];return{cacheSize:500,separator:":",theme:{colors:[wo],spacing:[Lt,sn],blur:["none","",an,W],brightness:H(),borderColor:[e],borderRadius:["none","","full",an,W],borderSpacing:L(),borderWidth:K(),contrast:H(),grayscale:T(),hueRotate:H(),invert:T(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[Wx,sn],inset:z(),margin:z(),opacity:H(),padding:L(),saturate:H(),scale:H(),sepia:T(),skew:H(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[an]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),W]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xo,W]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",xo,W]}],"grid-cols":[{"grid-cols":[wo]}],"col-start-end":[{col:["auto",{span:["full",xo,W]},W]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[wo]}],"row-start-end":[{row:["auto",{span:[xo,W]},W]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[an]},an]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",an,sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ba]}],"font-family":[{font:[wo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Ir,Ba]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Lt,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Lt,sn]}],"underline-offset":[{"underline-offset":["auto",Lt,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),Gx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Lt,W]}],"outline-w":[{outline:[Lt,sn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Lt,sn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",an,Xx]}],"shadow-color":[{shadow:[wo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",an,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[xo,W]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Lt,sn,Ba]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},nw=Lx(tw);function ur(...e){return nw(ym(e))}const rw=lx,jm=x.forwardRef(({className:e,...t},n)=>c.jsx(dm,{ref:n,className:ur("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));jm.displayName=dm.displayName;const ow=ux("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Rm=x.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(fm,{ref:r,className:ur(ow({variant:t}),e),...n}));Rm.displayName=fm.displayName;const sw=x.forwardRef(({className:e,...t},n)=>c.jsx(mm,{ref:n,className:ur("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));sw.displayName=mm.displayName;const Om=x.forwardRef(({className:e,...t},n)=>c.jsx(gm,{ref:n,className:ur("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(Sm,{className:"h-4 w-4"})}));Om.displayName=gm.displayName;const Mm=x.forwardRef(({className:e,...t},n)=>c.jsx(pm,{ref:n,className:ur("text-sm font-semibold",e),...t}));Mm.displayName=pm.displayName;const _m=x.forwardRef(({className:e,...t},n)=>c.jsx(hm,{ref:n,className:ur("text-sm opacity-90",e),...t}));_m.displayName=hm.displayName;function iw(){const{toasts:e}=g0();return c.jsxs(rw,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return c.jsxs(Rm,{...s,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Mm,{children:n}),r&&c.jsx(_m,{children:r})]}),o,c.jsx(Om,{})]},t)}),c.jsx(jm,{})]})}var Bd=["light","dark"],aw="(prefers-color-scheme: dark)",lw=x.createContext(void 0),uw={setTheme:e=>{},themes:[]},cw=()=>{var e;return(e=x.useContext(lw))!=null?e:uw};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?Bd.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(b,y=!1,w=!0)=>{let m=i?i[b]:b,h=y?b+"|| ''":`'${m}'`,v="";return o&&w&&!y&&Bd.includes(b)&&(v+=`d.style.colorScheme = '${b}';`),n==="class"?y||m?v+=`c.add(${h})`:v+="null":m&&(v+=`d[s](n,${h})`),v},f=e?`!function(){${d}${g(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${aw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}${u?"":"else{"+g(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}else{${g(s,!1,!1)};}${p}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var dw=e=>{switch(e){case"success":return hw;case"info":return gw;case"warning":return mw;case"error":return vw;default:return null}},fw=Array(12).fill(0),pw=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},fw.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),hw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),mw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),gw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),vw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),yw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),xw=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Vl=1,ww=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Vl++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async l=>{if(s=["resolve",l],R.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(Cw(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Vl++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},De=new ww,bw=(e,t)=>{let n=(t==null?void 0:t.id)||Vl++;return De.addToast({title:e,...t,id:n}),n},Cw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ew=bw,Sw=()=>De.toasts,kw=()=>De.getActiveToasts(),Nw=Object.assign(Ew,{success:De.success,info:De.info,warning:De.warning,error:De.error,custom:De.custom,message:De.message,promise:De.promise,dismiss:De.dismiss,loading:De.loading},{getHistory:Sw,getToasts:kw});function Pw(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Pw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Fs(e){return e.label!==void 0}var Aw=3,Tw="32px",jw="16px",Ud=4e3,Rw=356,Ow=14,Mw=20,_w=200;function pt(...e){return e.filter(Boolean).join(" ")}function Iw(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Fw=e=>{var t,n,r,o,s,i,a,l,u,d,p;let{invert:g,toast:f,unstyled:b,interacting:y,setHeights:w,visibleToasts:m,heights:h,index:v,toasts:C,expanded:E,removeToast:S,defaultRichColors:k,closeButton:A,style:_,cancelButtonStyle:O,actionButtonStyle:z,className:L="",descriptionClassName:K="",duration:M,position:Y,gap:B,loadingIcon:V,expandByDefault:P,classNames:T,icons:I,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:D}=e,[Q,q]=R.useState(null),[he,Pe]=R.useState(null),[J,cr]=R.useState(!1),[Zt,zn]=R.useState(!1),[Jt,dr]=R.useState(!1),[en,ps]=R.useState(!1),[aa,hs]=R.useState(!1),[la,lo]=R.useState(0),[fr,pc]=R.useState(0),uo=R.useRef(f.duration||M||Ud),hc=R.useRef(null),$n=R.useRef(null),jg=v===0,Rg=v+1<=m,tt=f.type,pr=f.dismissible!==!1,Og=f.className||"",Mg=f.descriptionClassName||"",ms=R.useMemo(()=>h.findIndex(U=>U.toastId===f.id)||0,[h,f.id]),_g=R.useMemo(()=>{var U;return(U=f.closeButton)!=null?U:A},[f.closeButton,A]),mc=R.useMemo(()=>f.duration||M||Ud,[f.duration,M]),ua=R.useRef(0),hr=R.useRef(0),gc=R.useRef(0),mr=R.useRef(null),[Ig,Fg]=Y.split("-"),vc=R.useMemo(()=>h.reduce((U,te,ie)=>ie>=ms?U:U+te.height,0),[h,ms]),yc=xw(),Lg=f.invert||g,ca=tt==="loading";hr.current=R.useMemo(()=>ms*B+vc,[ms,vc]),R.useEffect(()=>{uo.current=mc},[mc]),R.useEffect(()=>{cr(!0)},[]),R.useEffect(()=>{let U=$n.current;if(U){let te=U.getBoundingClientRect().height;return pc(te),w(ie=>[{toastId:f.id,height:te,position:f.position},...ie]),()=>w(ie=>ie.filter(ut=>ut.toastId!==f.id))}},[w,f.id]),R.useLayoutEffect(()=>{if(!J)return;let U=$n.current,te=U.style.height;U.style.height="auto";let ie=U.getBoundingClientRect().height;U.style.height=te,pc(ie),w(ut=>ut.find(ct=>ct.toastId===f.id)?ut.map(ct=>ct.toastId===f.id?{...ct,height:ie}:ct):[{toastId:f.id,height:ie,position:f.position},...ut])},[J,f.title,f.description,w,f.id]);let tn=R.useCallback(()=>{zn(!0),lo(hr.current),w(U=>U.filter(te=>te.toastId!==f.id)),setTimeout(()=>{S(f)},_w)},[f,S,w,hr]);R.useEffect(()=>{if(f.promise&&tt==="loading"||f.duration===1/0||f.type==="loading")return;let U;return E||y||D&&yc?(()=>{if(gc.current{var te;(te=f.onAutoClose)==null||te.call(f,f),tn()},uo.current)),()=>clearTimeout(U)},[E,y,f,tt,D,yc,tn]),R.useEffect(()=>{f.delete&&tn()},[tn,f.delete]);function Dg(){var U,te,ie;return I!=null&&I.loading?R.createElement("div",{className:pt(T==null?void 0:T.loader,(U=f==null?void 0:f.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":tt==="loading"},I.loading):V?R.createElement("div",{className:pt(T==null?void 0:T.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":tt==="loading"},V):R.createElement(pw,{className:pt(T==null?void 0:T.loader,(ie=f==null?void 0:f.classNames)==null?void 0:ie.loader),visible:tt==="loading"})}return R.createElement("li",{tabIndex:0,ref:$n,className:pt(L,Og,T==null?void 0:T.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[tt],(n=f==null?void 0:f.classNames)==null?void 0:n[tt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||b),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":aa,"data-removed":Zt,"data-visible":Rg,"data-y-position":Ig,"data-x-position":Fg,"data-index":v,"data-front":jg,"data-swiping":Jt,"data-dismissible":pr,"data-type":tt,"data-invert":Lg,"data-swipe-out":en,"data-swipe-direction":he,"data-expanded":!!(E||P&&J),style:{"--index":v,"--toasts-before":v,"--z-index":C.length-v,"--offset":`${Zt?la:hr.current}px`,"--initial-height":P?"auto":`${fr}px`,..._,...f.style},onDragEnd:()=>{dr(!1),q(null),mr.current=null},onPointerDown:U=>{ca||!pr||(hc.current=new Date,lo(hr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(dr(!0),mr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,ie,ut;if(en||!pr)return;mr.current=null;let ct=Number(((U=$n.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nn=Number(((te=$n.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bn=new Date().getTime()-((ie=hc.current)==null?void 0:ie.getTime()),dt=Q==="x"?ct:nn,rn=Math.abs(dt)/Bn;if(Math.abs(dt)>=Mw||rn>.11){lo(hr.current),(ut=f.onDismiss)==null||ut.call(f,f),Pe(Q==="x"?ct>0?"right":"left":nn>0?"down":"up"),tn(),ps(!0),hs(!1);return}dr(!1),q(null)},onPointerMove:U=>{var te,ie,ut,ct;if(!mr.current||!pr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let nn=U.clientY-mr.current.y,Bn=U.clientX-mr.current.x,dt=(ie=e.swipeDirections)!=null?ie:Iw(Y);!Q&&(Math.abs(Bn)>1||Math.abs(nn)>1)&&q(Math.abs(Bn)>Math.abs(nn)?"x":"y");let rn={x:0,y:0};Q==="y"?(dt.includes("top")||dt.includes("bottom"))&&(dt.includes("top")&&nn<0||dt.includes("bottom")&&nn>0)&&(rn.y=nn):Q==="x"&&(dt.includes("left")||dt.includes("right"))&&(dt.includes("left")&&Bn<0||dt.includes("right")&&Bn>0)&&(rn.x=Bn),(Math.abs(rn.x)>0||Math.abs(rn.y)>0)&&hs(!0),(ut=$n.current)==null||ut.style.setProperty("--swipe-amount-x",`${rn.x}px`),(ct=$n.current)==null||ct.style.setProperty("--swipe-amount-y",`${rn.y}px`)}},_g&&!f.jsx?R.createElement("button",{"aria-label":H,"data-disabled":ca,"data-close-button":!0,onClick:ca||!pr?()=>{}:()=>{var U;tn(),(U=f.onDismiss)==null||U.call(f,f)},className:pt(T==null?void 0:T.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=I==null?void 0:I.close)!=null?s:yw):null,f.jsx||x.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:R.createElement(R.Fragment,null,tt||f.icon||f.promise?R.createElement("div",{"data-icon":"",className:pt(T==null?void 0:T.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Dg():null,f.type!=="loading"?f.icon||(I==null?void 0:I[tt])||dw(tt):null):null,R.createElement("div",{"data-content":"",className:pt(T==null?void 0:T.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},R.createElement("div",{"data-title":"",className:pt(T==null?void 0:T.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?R.createElement("div",{"data-description":"",className:pt(K,Mg,T==null?void 0:T.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),x.isValidElement(f.cancel)?f.cancel:f.cancel&&Fs(f.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:U=>{var te,ie;Fs(f.cancel)&&pr&&((ie=(te=f.cancel).onClick)==null||ie.call(te,U),tn())},className:pt(T==null?void 0:T.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,x.isValidElement(f.action)?f.action:f.action&&Fs(f.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||z,onClick:U=>{var te,ie;Fs(f.action)&&((ie=(te=f.action).onClick)==null||ie.call(te,U),!U.defaultPrevented&&tn())},className:pt(T==null?void 0:T.actionButton,(p=f==null?void 0:f.classNames)==null?void 0:p.actionButton)},f.action.label):null))};function Vd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Lw(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?jw:Tw;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var Dw=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:p,duration:g,style:f,visibleToasts:b=Aw,toastOptions:y,dir:w=Vd(),gap:m=Ow,loadingIcon:h,icons:v,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:E}=e,[S,k]=R.useState([]),A=R.useMemo(()=>Array.from(new Set([r].concat(S.filter(D=>D.position).map(D=>D.position)))),[S,r]),[_,O]=R.useState([]),[z,L]=R.useState(!1),[K,M]=R.useState(!1),[Y,B]=R.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=R.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=R.useRef(null),I=R.useRef(!1),H=R.useCallback(D=>{k(Q=>{var q;return(q=Q.find(he=>he.id===D.id))!=null&&q.delete||De.dismiss(D.id),Q.filter(({id:he})=>he!==D.id)})},[]);return R.useEffect(()=>De.subscribe(D=>{if(D.dismiss){k(Q=>Q.map(q=>q.id===D.id?{...q,delete:!0}:q));return}setTimeout(()=>{Vh.flushSync(()=>{k(Q=>{let q=Q.findIndex(he=>he.id===D.id);return q!==-1?[...Q.slice(0,q),{...Q[q],...D},...Q.slice(q+1)]:[D,...Q]})})})}),[]),R.useEffect(()=>{if(d!=="system"){B(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:Q})=>{B(Q?"dark":"light")})}catch{D.addListener(({matches:q})=>{try{B(q?"dark":"light")}catch(he){console.error(he)}})}},[d]),R.useEffect(()=>{S.length<=1&&L(!1)},[S]),R.useEffect(()=>{let D=Q=>{var q,he;o.every(Pe=>Q[Pe]||Q.code===Pe)&&(L(!0),(q=V.current)==null||q.focus()),Q.code==="Escape"&&(document.activeElement===V.current||(he=V.current)!=null&&he.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[o]),R.useEffect(()=>{if(V.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,I.current=!1)}},[V.current]),R.createElement("section",{ref:t,"aria-label":`${C} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((D,Q)=>{var q;let[he,Pe]=D.split("-");return S.length?R.createElement("ol",{key:D,dir:w==="auto"?Vd():w,tabIndex:-1,ref:V,className:a,"data-sonner-toaster":!0,"data-theme":Y,"data-y-position":he,"data-lifted":z&&S.length>1&&!s,"data-x-position":Pe,style:{"--front-toast-height":`${((q=_[0])==null?void 0:q.height)||0}px`,"--width":`${Rw}px`,"--gap":`${m}px`,...f,...Lw(l,u)},onBlur:J=>{I.current&&!J.currentTarget.contains(J.relatedTarget)&&(I.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||I.current||(I.current=!0,T.current=J.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{K||L(!1)},onDragEnd:()=>L(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},S.filter(J=>!J.position&&Q===0||J.position===D).map((J,cr)=>{var Zt,zn;return R.createElement(Fw,{key:J.id,icons:v,index:cr,toast:J,defaultRichColors:p,duration:(Zt=y==null?void 0:y.duration)!=null?Zt:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:b,closeButton:(zn=y==null?void 0:y.closeButton)!=null?zn:i,interacting:K,position:D,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:H,toasts:S.filter(Jt=>Jt.position==J.position),heights:_.filter(Jt=>Jt.position==J.position),setHeights:O,expandByDefault:s,gap:m,loadingIcon:h,expanded:z,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const zw=({...e})=>{const{theme:t="system"}=cw();return c.jsx(Dw,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},$w=["top","right","bottom","left"],_n=Math.min,Ge=Math.max,Ni=Math.round,Ls=Math.floor,_t=e=>({x:e,y:e}),Bw={left:"right",right:"left",bottom:"top",top:"bottom"},Uw={start:"end",end:"start"};function Hl(e,t,n){return Ge(e,_n(t,n))}function Yt(e,t){return typeof e=="function"?e(t):e}function qt(e){return e.split("-")[0]}function so(e){return e.split("-")[1]}function tc(e){return e==="x"?"y":"x"}function nc(e){return e==="y"?"height":"width"}const Vw=new Set(["top","bottom"]);function Rt(e){return Vw.has(qt(e))?"y":"x"}function rc(e){return tc(Rt(e))}function Hw(e,t,n){n===void 0&&(n=!1);const r=so(e),o=rc(e),s=nc(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Pi(i)),[i,Pi(i)]}function Ww(e){const t=Pi(e);return[Wl(e),t,Wl(t)]}function Wl(e){return e.replace(/start|end/g,t=>Uw[t])}const Hd=["left","right"],Wd=["right","left"],Kw=["top","bottom"],Qw=["bottom","top"];function Gw(e,t,n){switch(e){case"top":case"bottom":return n?t?Wd:Hd:t?Hd:Wd;case"left":case"right":return t?Kw:Qw;default:return[]}}function Yw(e,t,n,r){const o=so(e);let s=Gw(qt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Wl)))),s}function Pi(e){return e.replace(/left|right|bottom|top/g,t=>Bw[t])}function qw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Im(e){return typeof e!="number"?qw(e):{top:e,right:e,bottom:e,left:e}}function Ai(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Kd(e,t,n){let{reference:r,floating:o}=e;const s=Rt(t),i=rc(t),a=nc(i),l=qt(t),u=s==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-o.width,y:p};break;default:f={x:r.x,y:r.y}}switch(so(t)){case"start":f[i]-=g*(n&&u?-1:1);break;case"end":f[i]+=g*(n&&u?-1:1);break}return f}const Xw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Kd(u,r,l),g=r,f={},b=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=Yt(e,t)||{};if(u==null)return{};const p=Im(d),g={x:n,y:r},f=rc(o),b=nc(f),y=await i.getDimensions(u),w=f==="y",m=w?"top":"left",h=w?"bottom":"right",v=w?"clientHeight":"clientWidth",C=s.reference[b]+s.reference[f]-g[f]-s.floating[b],E=g[f]-s.reference[f],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=S?S[v]:0;(!k||!await(i.isElement==null?void 0:i.isElement(S)))&&(k=a.floating[v]||s.floating[b]);const A=C/2-E/2,_=k/2-y[b]/2-1,O=_n(p[m],_),z=_n(p[h],_),L=O,K=k-y[b]-z,M=k/2-y[b]/2+A,Y=Hl(L,M,K),B=!l.arrow&&so(o)!=null&&M!==Y&&s.reference[b]/2-(MM<=0)){var z,L;const M=(((z=s.flip)==null?void 0:z.index)||0)+1,Y=k[M];if(Y&&(!(p==="alignment"?h!==Rt(Y):!1)||O.every(P=>P.overflows[0]>0&&Rt(P.placement)===h)))return{data:{index:M,overflows:O},reset:{placement:Y}};let B=(L=O.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:L.placement;if(!B)switch(f){case"bestFit":{var K;const V=(K=O.filter(P=>{if(S){const T=Rt(P.placement);return T===h||T==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(T=>T>0).reduce((T,I)=>T+I,0)]).sort((P,T)=>P[1]-T[1])[0])==null?void 0:K[0];V&&(B=V);break}case"initialPlacement":B=a;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Qd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gd(e){return $w.some(t=>e[t]>=0)}const e1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Yt(e,t);switch(r){case"referenceHidden":{const s=await Zo(t,{...o,elementContext:"reference"}),i=Qd(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Gd(i)}}}case"escaped":{const s=await Zo(t,{...o,altBoundary:!0}),i=Qd(s,n.floating);return{data:{escapedOffsets:i,escaped:Gd(i)}}}default:return{}}}}},Fm=new Set(["left","top"]);async function t1(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=qt(n),a=so(n),l=Rt(n)==="y",u=Fm.has(i)?-1:1,d=s&&l?-1:1,p=Yt(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof b=="number"&&(f=a==="end"?b*-1:b),l?{x:f*d,y:g*u}:{x:g*u,y:f*d}}const n1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await t1(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},r1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:m,y:h}=w;return{x:m,y:h}}},...l}=Yt(e,t),u={x:n,y:r},d=await Zo(t,l),p=Rt(qt(o)),g=tc(p);let f=u[g],b=u[p];if(s){const w=g==="y"?"top":"left",m=g==="y"?"bottom":"right",h=f+d[w],v=f-d[m];f=Hl(h,f,v)}if(i){const w=p==="y"?"top":"left",m=p==="y"?"bottom":"right",h=b+d[w],v=b-d[m];b=Hl(h,b,v)}const y=a.fn({...t,[g]:f,[p]:b});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:s,[p]:i}}}}}},o1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Yt(e,t),d={x:n,y:r},p=Rt(o),g=tc(p);let f=d[g],b=d[p];const y=Yt(a,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const v=g==="y"?"height":"width",C=s.reference[g]-s.floating[v]+w.mainAxis,E=s.reference[g]+s.reference[v]-w.mainAxis;fE&&(f=E)}if(u){var m,h;const v=g==="y"?"width":"height",C=Fm.has(qt(o)),E=s.reference[p]-s.floating[v]+(C&&((m=i.offset)==null?void 0:m[p])||0)+(C?0:w.crossAxis),S=s.reference[p]+s.reference[v]+(C?0:((h=i.offset)==null?void 0:h[p])||0)-(C?w.crossAxis:0);bS&&(b=S)}return{[g]:f,[p]:b}}}},s1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=Yt(e,t),d=await Zo(t,u),p=qt(o),g=so(o),f=Rt(o)==="y",{width:b,height:y}=s.floating;let w,m;p==="top"||p==="bottom"?(w=p,m=g===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(m=p,w=g==="end"?"top":"bottom");const h=y-d.top-d.bottom,v=b-d.left-d.right,C=_n(y-d[w],h),E=_n(b-d[m],v),S=!t.middlewareData.shift;let k=C,A=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=h),S&&!g){const O=Ge(d.left,0),z=Ge(d.right,0),L=Ge(d.top,0),K=Ge(d.bottom,0);f?A=b-2*(O!==0||z!==0?O+z:Ge(d.left,d.right)):k=y-2*(L!==0||K!==0?L+K:Ge(d.top,d.bottom))}await l({...t,availableWidth:A,availableHeight:k});const _=await i.getDimensions(a.floating);return b!==_.width||y!==_.height?{reset:{rects:!0}}:{}}}};function Zi(){return typeof window<"u"}function io(e){return Lm(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ft(e){var t;return(t=(Lm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lm(e){return Zi()?e instanceof Node||e instanceof Xe(e).Node:!1}function Et(e){return Zi()?e instanceof Element||e instanceof Xe(e).Element:!1}function It(e){return Zi()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function Yd(e){return!Zi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}const i1=new Set(["inline","contents"]);function fs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=St(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!i1.has(o)}const a1=new Set(["table","td","th"]);function l1(e){return a1.has(io(e))}const u1=[":popover-open",":modal"];function Ji(e){return u1.some(t=>{try{return e.matches(t)}catch{return!1}})}const c1=["transform","translate","scale","rotate","perspective"],d1=["transform","translate","scale","rotate","perspective","filter"],f1=["paint","layout","strict","content"];function oc(e){const t=sc(),n=Et(e)?St(e):e;return c1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||d1.some(r=>(n.willChange||"").includes(r))||f1.some(r=>(n.contain||"").includes(r))}function p1(e){let t=In(e);for(;It(t)&&!Jr(t);){if(oc(t))return t;if(Ji(t))return null;t=In(t)}return null}function sc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const h1=new Set(["html","body","#document"]);function Jr(e){return h1.has(io(e))}function St(e){return Xe(e).getComputedStyle(e)}function ea(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function In(e){if(io(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yd(e)&&e.host||Ft(e);return Yd(t)?t.host:t}function Dm(e){const t=In(e);return Jr(t)?e.ownerDocument?e.ownerDocument.body:e.body:It(t)&&fs(t)?t:Dm(t)}function Jo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Dm(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Xe(o);if(s){const a=Kl(i);return t.concat(i,i.visualViewport||[],fs(o)?o:[],a&&n?Jo(a):[])}return t.concat(o,Jo(o,[],n))}function Kl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zm(e){const t=St(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=It(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ni(n)!==s||Ni(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function ic(e){return Et(e)?e:e.contextElement}function Fr(e){const t=ic(e);if(!It(t))return _t(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=zm(t);let i=(s?Ni(n.width):n.width)/r,a=(s?Ni(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const m1=_t(0);function $m(e){const t=Xe(e);return!sc()||!t.visualViewport?m1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function g1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xe(e)?!1:t}function ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ic(e);let i=_t(1);t&&(r?Et(r)&&(i=Fr(r)):i=Fr(e));const a=g1(s,n,r)?$m(s):_t(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(s){const g=Xe(s),f=r&&Et(r)?Xe(r):r;let b=g,y=Kl(b);for(;y&&r&&f!==b;){const w=Fr(y),m=y.getBoundingClientRect(),h=St(y),v=m.left+(y.clientLeft+parseFloat(h.paddingLeft))*w.x,C=m.top+(y.clientTop+parseFloat(h.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,p*=w.y,l+=v,u+=C,b=Xe(y),y=Kl(b)}}return Ai({width:d,height:p,x:l,y:u})}function ac(e,t){const n=ea(e).scrollLeft;return t?t.left+n:ir(Ft(e)).left+n}function Bm(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ac(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function v1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Ft(r),a=t?Ji(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=_t(1);const d=_t(0),p=It(r);if((p||!p&&!s)&&((io(r)!=="body"||fs(i))&&(l=ea(r)),It(r))){const f=ir(r);u=Fr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const g=i&&!p&&!s?Bm(i,l,!0):_t(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-l.scrollTop*u.y+d.y+g.y}}function y1(e){return Array.from(e.getClientRects())}function x1(e){const t=Ft(e),n=ea(e),r=e.ownerDocument.body,o=Ge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ac(e);const a=-n.scrollTop;return St(r).direction==="rtl"&&(i+=Ge(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function w1(e,t){const n=Xe(e),r=Ft(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=sc();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const b1=new Set(["absolute","fixed"]);function C1(e,t){const n=ir(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=It(e)?Fr(e):_t(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function qd(e,t,n){let r;if(t==="viewport")r=w1(e,n);else if(t==="document")r=x1(Ft(e));else if(Et(t))r=C1(t,n);else{const o=$m(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ai(r)}function Um(e,t){const n=In(e);return n===t||!Et(n)||Jr(n)?!1:St(n).position==="fixed"||Um(n,t)}function E1(e,t){const n=t.get(e);if(n)return n;let r=Jo(e,[],!1).filter(a=>Et(a)&&io(a)!=="body"),o=null;const s=St(e).position==="fixed";let i=s?In(e):e;for(;Et(i)&&!Jr(i);){const a=St(i),l=oc(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&b1.has(o.position)||fs(i)&&!l&&Um(e,i))?r=r.filter(d=>d!==i):o=a,i=In(i)}return t.set(e,r),r}function S1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ji(t)?[]:E1(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,d)=>{const p=qd(t,d,o);return u.top=Ge(p.top,u.top),u.right=_n(p.right,u.right),u.bottom=_n(p.bottom,u.bottom),u.left=Ge(p.left,u.left),u},qd(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function k1(e){const{width:t,height:n}=zm(e);return{width:t,height:n}}function N1(e,t,n){const r=It(t),o=Ft(t),s=n==="fixed",i=ir(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=_t(0);function u(){l.x=ac(o)}if(r||!r&&!s)if((io(t)!=="body"||fs(o))&&(a=ea(t)),r){const f=ir(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Bm(o,a):_t(0),p=i.left+a.scrollLeft-l.x-d.x,g=i.top+a.scrollTop-l.y-d.y;return{x:p,y:g,width:i.width,height:i.height}}function Ua(e){return St(e).position==="static"}function Xd(e,t){if(!It(e)||St(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ft(e)===n&&(n=n.ownerDocument.body),n}function Vm(e,t){const n=Xe(e);if(Ji(e))return n;if(!It(e)){let o=In(e);for(;o&&!Jr(o);){if(Et(o)&&!Ua(o))return o;o=In(o)}return n}let r=Xd(e,t);for(;r&&l1(r)&&Ua(r);)r=Xd(r,t);return r&&Jr(r)&&Ua(r)&&!oc(r)?n:r||p1(e)||n}const P1=async function(e){const t=this.getOffsetParent||Vm,n=this.getDimensions,r=await n(e.floating);return{reference:N1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function A1(e){return St(e).direction==="rtl"}const T1={convertOffsetParentRelativeRectToViewportRelativeRect:v1,getDocumentElement:Ft,getClippingRect:S1,getOffsetParent:Vm,getElementRects:P1,getClientRects:y1,getDimensions:k1,getScale:Fr,isElement:Et,isRTL:A1};function Hm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function j1(e,t){let n=null,r;const o=Ft(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:p,width:g,height:f}=u;if(a||t(),!g||!f)return;const b=Ls(p),y=Ls(o.clientWidth-(d+g)),w=Ls(o.clientHeight-(p+f)),m=Ls(d),v={rootMargin:-b+"px "+-y+"px "+-w+"px "+-m+"px",threshold:Ge(0,_n(1,l))||1};let C=!0;function E(S){const k=S[0].intersectionRatio;if(k!==l){if(!C)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Hm(u,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(E,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return i(!0),s}function R1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=ic(e),d=o||s?[...u?Jo(u):[],...Jo(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const p=u&&a?j1(u,n):null;let g=-1,f=null;i&&(f=new ResizeObserver(m=>{let[h]=m;h&&h.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let b,y=l?ir(e):null;l&&w();function w(){const m=ir(e);y&&!Hm(y,m)&&n(),y=m,b=requestAnimationFrame(w)}return n(),()=>{var m;d.forEach(h=>{o&&h.removeEventListener("scroll",n),s&&h.removeEventListener("resize",n)}),p==null||p(),(m=f)==null||m.disconnect(),f=null,l&&cancelAnimationFrame(b)}}const O1=n1,M1=r1,_1=Jw,I1=s1,F1=e1,Zd=Zw,L1=o1,D1=(e,t,n)=>{const r=new Map,o={platform:T1,...n},s={...o.platform,_c:r};return Xw(e,t,{...o,platform:s})};var z1=typeof document<"u",$1=function(){},ei=z1?x.useLayoutEffect:$1;function Ti(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ti(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ti(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Wm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jd(e,t){const n=Wm(e);return Math.round(t*n)/n}function Va(e){const t=x.useRef(e);return ei(()=>{t.current=e}),t}function B1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,f]=x.useState(r);Ti(g,r)||f(r);const[b,y]=x.useState(null),[w,m]=x.useState(null),h=x.useCallback(P=>{P!==S.current&&(S.current=P,y(P))},[]),v=x.useCallback(P=>{P!==k.current&&(k.current=P,m(P))},[]),C=s||b,E=i||w,S=x.useRef(null),k=x.useRef(null),A=x.useRef(d),_=l!=null,O=Va(l),z=Va(o),L=Va(u),K=x.useCallback(()=>{if(!S.current||!k.current)return;const P={placement:t,strategy:n,middleware:g};z.current&&(P.platform=z.current),D1(S.current,k.current,P).then(T=>{const I={...T,isPositioned:L.current!==!1};M.current&&!Ti(A.current,I)&&(A.current=I,cs.flushSync(()=>{p(I)}))})},[g,t,n,z,L]);ei(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[u]);const M=x.useRef(!1);ei(()=>(M.current=!0,()=>{M.current=!1}),[]),ei(()=>{if(C&&(S.current=C),E&&(k.current=E),C&&E){if(O.current)return O.current(C,E,K);K()}},[C,E,K,O,_]);const Y=x.useMemo(()=>({reference:S,floating:k,setReference:h,setFloating:v}),[h,v]),B=x.useMemo(()=>({reference:C,floating:E}),[C,E]),V=x.useMemo(()=>{const P={position:n,left:0,top:0};if(!B.floating)return P;const T=Jd(B.floating,d.x),I=Jd(B.floating,d.y);return a?{...P,transform:"translate("+T+"px, "+I+"px)",...Wm(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:I}},[n,a,B.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:K,refs:Y,elements:B,floatingStyles:V}),[d,K,Y,B,V])}const U1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Zd({element:r.current,padding:o}).fn(n):{}:r?Zd({element:r,padding:o}).fn(n):{}}}},V1=(e,t)=>({...O1(e),options:[e,t]}),H1=(e,t)=>({...M1(e),options:[e,t]}),W1=(e,t)=>({...L1(e),options:[e,t]}),K1=(e,t)=>({..._1(e),options:[e,t]}),Q1=(e,t)=>({...I1(e),options:[e,t]}),G1=(e,t)=>({...F1(e),options:[e,t]}),Y1=(e,t)=>({...U1(e),options:[e,t]});var q1="Arrow",Km=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(We.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Km.displayName=q1;var X1=Km;function Z1(e){const[t,n]=x.useState(void 0);return Mn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Qm="Popper",[Gm,Ym]=Yi(Qm),[uC,qm]=Gm(Qm),Xm="PopperAnchor",Zm=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=qm(Xm,n),i=x.useRef(null),a=Ct(t,i);return x.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(We.div,{...o,ref:a})});Zm.displayName=Xm;var lc="PopperContent",[J1,e2]=Gm(lc),Jm=x.forwardRef((e,t)=>{var J,cr,Zt,zn,Jt,dr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:f="optimized",onPlaced:b,...y}=e,w=qm(lc,n),[m,h]=x.useState(null),v=Ct(t,en=>h(en)),[C,E]=x.useState(null),S=Z1(C),k=(S==null?void 0:S.width)??0,A=(S==null?void 0:S.height)??0,_=r+(s!=="center"?"-"+s:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(u)?u:[u],L=z.length>0,K={padding:O,boundary:z.filter(n2),altBoundary:L},{refs:M,floatingStyles:Y,placement:B,isPositioned:V,middlewareData:P}=B1({strategy:"fixed",placement:_,whileElementsMounted:(...en)=>R1(...en,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[V1({mainAxis:o+A,alignmentAxis:i}),l&&H1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?W1():void 0,...K}),l&&K1({...K}),Q1({...K,apply:({elements:en,rects:ps,availableWidth:aa,availableHeight:hs})=>{const{width:la,height:lo}=ps.reference,fr=en.floating.style;fr.setProperty("--radix-popper-available-width",`${aa}px`),fr.setProperty("--radix-popper-available-height",`${hs}px`),fr.setProperty("--radix-popper-anchor-width",`${la}px`),fr.setProperty("--radix-popper-anchor-height",`${lo}px`)}}),C&&Y1({element:C,padding:a}),r2({arrowWidth:k,arrowHeight:A}),g&&G1({strategy:"referenceHidden",...K})]}),[T,I]=ng(B),H=On(b);Mn(()=>{V&&(H==null||H())},[V,H]);const D=(J=P.arrow)==null?void 0:J.x,Q=(cr=P.arrow)==null?void 0:cr.y,q=((Zt=P.arrow)==null?void 0:Zt.centerOffset)!==0,[he,Pe]=x.useState();return Mn(()=>{m&&Pe(window.getComputedStyle(m).zIndex)},[m]),c.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:V?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(zn=P.transformOrigin)==null?void 0:zn.x,(Jt=P.transformOrigin)==null?void 0:Jt.y].join(" "),...((dr=P.hide)==null?void 0:dr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(J1,{scope:n,placedSide:T,onArrowChange:E,arrowX:D,arrowY:Q,shouldHideArrow:q,children:c.jsx(We.div,{"data-side":T,"data-align":I,...y,ref:v,style:{...y.style,animation:V?void 0:"none"}})})})});Jm.displayName=lc;var eg="PopperArrow",t2={top:"bottom",right:"left",bottom:"top",left:"right"},tg=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=e2(eg,r),i=t2[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(X1,{...o,ref:n,style:{...o.style,display:"block"}})})});tg.displayName=eg;function n2(e){return e!==null}var r2=e=>({name:"transformOrigin",options:e,fn(t){var w,m,h;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=ng(n),p={start:"0%",center:"50%",end:"100%"}[d],g=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,f=(((h=o.arrow)==null?void 0:h.y)??0)+l/2;let b="",y="";return u==="bottom"?(b=i?p:`${g}px`,y=`${-l}px`):u==="top"?(b=i?p:`${g}px`,y=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,y=i?p:`${f}px`):u==="left"&&(b=`${r.floating.width+l}px`,y=i?p:`${f}px`),{data:{x:b,y}}}});function ng(e){const[t,n="center"]=e.split("-");return[t,n]}var o2=Zm,s2=Jm,i2=tg,[ta,cC]=Yi("Tooltip",[Ym]),uc=Ym(),rg="TooltipProvider",a2=700,ef="tooltip.open",[l2,og]=ta(rg),sg=e=>{const{__scopeTooltip:t,delayDuration:n=a2,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(l2,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};sg.displayName=rg;var ig="Tooltip",[dC,na]=ta(ig),Ql="TooltipTrigger",u2=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=na(Ql,n),s=og(Ql,n),i=uc(n),a=x.useRef(null),l=Ct(t,a,o.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),p=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(o2,{asChild:!0,...i,children:c.jsx(We.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ye(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ye(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ye(e.onBlur,o.onClose),onClick:ye(e.onClick,o.onClose)})})});u2.displayName=Ql;var c2="TooltipPortal",[fC,d2]=ta(c2,{forceMount:void 0}),eo="TooltipContent",ag=x.forwardRef((e,t)=>{const n=d2(eo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=na(eo,e.__scopeTooltip);return c.jsx(qu,{present:r||i.open,children:i.disableHoverableContent?c.jsx(lg,{side:o,...s,ref:t}):c.jsx(f2,{side:o,...s,ref:t})})}),f2=x.forwardRef((e,t)=>{const n=na(eo,e.__scopeTooltip),r=og(eo,e.__scopeTooltip),o=x.useRef(null),s=Ct(t,o),[i,a]=x.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,g=x.useCallback(()=>{a(null),p(!1)},[p]),f=x.useCallback((b,y)=>{const w=b.currentTarget,m={x:b.clientX,y:b.clientY},h=v2(m,w.getBoundingClientRect()),v=y2(m,h),C=x2(y.getBoundingClientRect()),E=b2([...v,...C]);a(E),p(!0)},[p]);return x.useEffect(()=>()=>g(),[g]),x.useEffect(()=>{if(l&&d){const b=w=>f(w,d),y=w=>f(w,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",y)}}},[l,d,f,g]),x.useEffect(()=>{if(i){const b=y=>{const w=y.target,m={x:y.clientX,y:y.clientY},h=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),v=!w2(m,i);h?g():v&&(g(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,i,u,g]),c.jsx(lg,{...e,ref:s})}),[p2,h2]=ta(ig,{isInside:!1}),m2=x0("TooltipContent"),lg=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=na(eo,n),u=uc(n),{onClose:d}=l;return x.useEffect(()=>(document.addEventListener(ef,d),()=>document.removeEventListener(ef,d)),[d]),x.useEffect(()=>{if(l.trigger){const p=g=>{const f=g.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),c.jsx(Yu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(s2,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(m2,{children:r}),c.jsx(p2,{scope:n,isInside:!0,children:c.jsx(H0,{id:l.contentId,role:"tooltip",children:o||r})})]})})});ag.displayName=eo;var ug="TooltipArrow",g2=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=uc(n);return h2(ug,n).isInside?null:c.jsx(i2,{...o,...r,ref:t})});g2.displayName=ug;function v2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function y2(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function x2(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function w2(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=g>r&&n<(p-u)*(r-d)/(g-d)+u&&(o=!o)}return o}function b2(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),C2(t)}function C2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var E2=sg,cg=ag;const S2=E2,k2=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(cg,{ref:r,sideOffset:t,className:ur("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));k2.displayName=cg.displayName;var ra=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qn,pn,Dr,wf,N2=(wf=class extends ra{constructor(){super();X(this,Qn);X(this,pn);X(this,Dr);$(this,Dr,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,pn)||this.setEventListener(N(this,Dr))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,pn))==null||t.call(this),$(this,pn,void 0))}setEventListener(t){var n;$(this,Dr,t),(n=N(this,pn))==null||n.call(this),$(this,pn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,Qn)!==t&&($(this,Qn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,Qn)=="boolean"?N(this,Qn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Qn=new WeakMap,pn=new WeakMap,Dr=new WeakMap,wf),dg=new N2,P2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},hn,eu,bf,A2=(bf=class{constructor(){X(this,hn,P2);X(this,eu,!1)}setTimeoutProvider(e){$(this,hn,e)}setTimeout(e,t){return N(this,hn).setTimeout(e,t)}clearTimeout(e){N(this,hn).clearTimeout(e)}setInterval(e,t){return N(this,hn).setInterval(e,t)}clearInterval(e){N(this,hn).clearInterval(e)}},hn=new WeakMap,eu=new WeakMap,bf),Gl=new A2;function T2(e){setTimeout(e,0)}var j2=typeof window>"u"||"Deno"in globalThis;function mt(){}function R2(e,t){return typeof e=="function"?e(t):e}function O2(e){return typeof e=="number"&&e>=0&&e!==1/0}function M2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yl(e,t){return typeof e=="function"?e(t):e}function _2(e,t){return typeof e=="function"?e(t):e}function tf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==cc(i,t.options))return!1}else if(!ts(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function nf(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(es(t.options.mutationKey)!==es(s))return!1}else if(!ts(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function cc(e,t){return((t==null?void 0:t.queryKeyHashFn)||es)(e)}function es(e){return JSON.stringify(e,(t,n)=>ql(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ts(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ts(e[n],t[n])):!1}var I2=Object.prototype.hasOwnProperty;function fg(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=rf(e)&&rf(t);if(!r&&!(ql(e)&&ql(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),a=i.length,l=r?new Array(a):{};let u=0;for(let d=0;d{Gl.setTimeout(t,e)})}function L2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?fg(e,t):t}function D2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function z2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var dc=Symbol();function pg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===dc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $2(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var hg=(()=>{let e=()=>j2;return{isServer(){return e()},setIsServer(t){e=t}}})();function B2(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var U2=T2;function V2(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=U2;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var _e=V2(),zr,mn,$r,Cf,H2=(Cf=class extends ra{constructor(){super();X(this,zr,!0);X(this,mn);X(this,$r);$(this,$r,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,mn)||this.setEventListener(N(this,$r))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,mn))==null||t.call(this),$(this,mn,void 0))}setEventListener(t){var n;$(this,$r,t),(n=N(this,mn))==null||n.call(this),$(this,mn,t(this.setOnline.bind(this)))}setOnline(t){N(this,zr)!==t&&($(this,zr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,zr)}},zr=new WeakMap,mn=new WeakMap,$r=new WeakMap,Cf),ji=new H2;function W2(e){return Math.min(1e3*2**e,3e4)}function mg(e){return(e??"online")==="online"?ji.isOnline():!0}var Xl=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gg(e){let t=!1,n=0,r;const o=B2(),s=()=>o.status!=="pending",i=y=>{var w;if(!s()){const m=new Xl(y);g(m),(w=e.onCancel)==null||w.call(e,m)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>dg.isFocused()&&(e.networkMode==="always"||ji.isOnline())&&e.canRun(),d=()=>mg(e.networkMode)&&e.canRun(),p=y=>{s()||(r==null||r(),o.resolve(y))},g=y=>{s()||(r==null||r(),o.reject(y))},f=()=>new Promise(y=>{var w;r=m=>{(s()||u())&&y(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var y;r=void 0,s()||(y=e.onContinue)==null||y.call(e)}),b=()=>{if(s())return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(p).catch(m=>{var S;if(s())return;const h=e.retry??(hg.isServer()?0:3),v=e.retryDelay??W2,C=typeof v=="function"?v(n,m):v,E=h===!0||typeof h=="number"&&nu()?void 0:f()).then(()=>{t?g(m):b()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?b():f().then(b),o)}}var Gn,Ef,vg=(Ef=class{constructor(){X(this,Gn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),O2(this.gcTime)&&$(this,Gn,Gl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hg.isServer()?1/0:5*60*1e3))}clearGcTimeout(){N(this,Gn)!==void 0&&(Gl.clearTimeout(N(this,Gn)),$(this,Gn,void 0))}},Gn=new WeakMap,Ef),Yn,Br,nt,qn,we,ns,Xn,Qe,yg,Dt,Sf,K2=(Sf=class extends vg{constructor(t){super();X(this,Qe);X(this,Yn);X(this,Br);X(this,nt);X(this,qn);X(this,we);X(this,ns);X(this,Xn);$(this,Xn,!1),$(this,ns,t.defaultOptions),this.setOptions(t.options),this.observers=[],$(this,qn,t.client),$(this,nt,N(this,qn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,$(this,Yn,af(this.options)),this.state=t.state??N(this,Yn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=N(this,we))==null?void 0:t.promise}setOptions(t){if(this.options={...N(this,ns),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=af(this.options);n.data!==void 0&&(this.setState(sf(n.data,n.dataUpdatedAt)),$(this,Yn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,nt).remove(this)}setData(t,n){const r=L2(this.state.data,t,this.options);return Ee(this,Qe,Dt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ee(this,Qe,Dt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=N(this,we))==null?void 0:r.promise;return(o=N(this,we))==null||o.cancel(t),n?n.then(mt).catch(mt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return N(this,Yn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>_2(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Yl(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!M2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,we))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,we))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,we)&&(N(this,Xn)||Ee(this,Qe,yg).call(this)?N(this,we).cancel({revert:!0}):N(this,we).cancelRetry()),this.scheduleGc()),N(this,nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,Qe,Dt).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,d,p,g,f,b,y,w,m,h,v;if(this.state.fetchStatus!=="idle"&&((l=N(this,we))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,we))return N(this,we).continueRetry(),N(this,we).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(E=>E.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,o=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>($(this,Xn,!0),r.signal)})},s=()=>{const C=pg(this.options,n),S=(()=>{const k={client:N(this,qn),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return $(this,Xn,!1),this.options.persister?this.options.persister(C,S,this):C(S)},a=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,qn),state:this.state,fetchFn:s};return o(C),C})();(u=this.options.behavior)==null||u.onFetch(a,this),$(this,Br,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Ee(this,Qe,Dt).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta}),$(this,we,gg({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:C=>{C instanceof Xl&&C.revert&&this.setState({...N(this,Br),fetchStatus:"idle"}),r.abort()},onFail:(C,E)=>{Ee(this,Qe,Dt).call(this,{type:"failed",failureCount:C,error:E})},onPause:()=>{Ee(this,Qe,Dt).call(this,{type:"pause"})},onContinue:()=>{Ee(this,Qe,Dt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const C=await N(this,we).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(f=(g=N(this,nt).config).onSuccess)==null||f.call(g,C,this),(y=(b=N(this,nt).config).onSettled)==null||y.call(b,C,this.state.error,this),C}catch(C){if(C instanceof Xl){if(C.silent)return N(this,we).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Ee(this,Qe,Dt).call(this,{type:"error",error:C}),(m=(w=N(this,nt).config).onError)==null||m.call(w,C,this),(v=(h=N(this,nt).config).onSettled)==null||v.call(h,this.state.data,C,this),C}finally{this.scheduleGc()}}},Yn=new WeakMap,Br=new WeakMap,nt=new WeakMap,qn=new WeakMap,we=new WeakMap,ns=new WeakMap,Xn=new WeakMap,Qe=new WeakSet,yg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Dt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Q2(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...sf(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return $(this,Br,t.manual?o:void 0),o;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),_e.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,nt).notify({query:this,type:"updated",action:t})})},Sf);function Q2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function sf(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function af(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function lf(e){return{onFetch:(t,n)=>{var d,p,g,f,b;const r=t.options,o=(g=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const w=v=>{$2(v,()=>t.signal,()=>y=!0)},m=pg(t.options,t.fetchOptions),h=async(v,C,E)=>{if(y)return Promise.reject();if(C==null&&v.pages.length)return Promise.resolve(v);const k=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:C,direction:E?"backward":"forward",meta:t.options.meta};return w(z),z})(),A=await m(k),{maxPages:_}=t.options,O=E?z2:D2;return{pages:O(v.pages,A,_),pageParams:O(v.pageParams,C,_)}};if(o&&s.length){const v=o==="backward",C=v?G2:uf,E={pages:s,pageParams:i},S=C(r,E);a=await h(E,S,v)}else{const v=e??s.length;do{const C=l===0?i[0]??r.initialPageParam:uf(r,a);if(l>0&&C==null)break;a=await h(a,C),l++}while(l{var y,w;return(w=(y=t.options).persister)==null?void 0:w.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function uf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function G2(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var rs,Pt,je,Zn,At,ln,kf,Y2=(kf=class extends vg{constructor(t){super();X(this,At);X(this,rs);X(this,Pt);X(this,je);X(this,Zn);$(this,rs,t.client),this.mutationId=t.mutationId,$(this,je,t.mutationCache),$(this,Pt,[]),this.state=t.state||q2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,Pt).includes(t)||(N(this,Pt).push(t),this.clearGcTimeout(),N(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){$(this,Pt,N(this,Pt).filter(n=>n!==t)),this.scheduleGc(),N(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Pt).length||(this.state.status==="pending"?this.scheduleGc():N(this,je).remove(this))}continue(){var t;return((t=N(this,Zn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,l,u,d,p,g,f,b,y,w,m,h,v,C,E,S,k;const n=()=>{Ee(this,At,ln).call(this,{type:"continue"})},r={client:N(this,rs),meta:this.options.meta,mutationKey:this.options.mutationKey};$(this,Zn,gg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(A,_)=>{Ee(this,At,ln).call(this,{type:"failed",failureCount:A,error:_})},onPause:()=>{Ee(this,At,ln).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,je).canRun(this)}));const o=this.state.status==="pending",s=!N(this,Zn).canStart();try{if(o)n();else{Ee(this,At,ln).call(this,{type:"pending",variables:t,isPaused:s}),N(this,je).config.onMutate&&await N(this,je).config.onMutate(t,this,r);const _=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t,r));_!==this.state.context&&Ee(this,At,ln).call(this,{type:"pending",context:_,variables:t,isPaused:s})}const A=await N(this,Zn).start();return await((u=(l=N(this,je).config).onSuccess)==null?void 0:u.call(l,A,t,this.state.context,this,r)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,A,t,this.state.context,r)),await((f=(g=N(this,je).config).onSettled)==null?void 0:f.call(g,A,null,this.state.variables,this.state.context,this,r)),await((y=(b=this.options).onSettled)==null?void 0:y.call(b,A,null,t,this.state.context,r)),Ee(this,At,ln).call(this,{type:"success",data:A}),A}catch(A){try{await((m=(w=N(this,je).config).onError)==null?void 0:m.call(w,A,t,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((v=(h=this.options).onError)==null?void 0:v.call(h,A,t,this.state.context,r))}catch(_){Promise.reject(_)}try{await((E=(C=N(this,je).config).onSettled)==null?void 0:E.call(C,void 0,A,this.state.variables,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((k=(S=this.options).onSettled)==null?void 0:k.call(S,void 0,A,t,this.state.context,r))}catch(_){Promise.reject(_)}throw Ee(this,At,ln).call(this,{type:"error",error:A}),A}finally{N(this,je).runNext(this)}}},rs=new WeakMap,Pt=new WeakMap,je=new WeakMap,Zn=new WeakMap,At=new WeakSet,ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),_e.batch(()=>{N(this,Pt).forEach(r=>{r.onMutationUpdate(t)}),N(this,je).notify({mutation:this,type:"updated",action:t})})},kf);function q2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bt,gt,os,Nf,X2=(Nf=class extends ra{constructor(t={}){super();X(this,Bt);X(this,gt);X(this,os);this.config=t,$(this,Bt,new Set),$(this,gt,new Map),$(this,os,0)}build(t,n,r){const o=new Y2({client:t,mutationCache:this,mutationId:++gs(this,os)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){N(this,Bt).add(t);const n=Ds(t);if(typeof n=="string"){const r=N(this,gt).get(n);r?r.push(t):N(this,gt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,Bt).delete(t)){const n=Ds(t);if(typeof n=="string"){const r=N(this,gt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&N(this,gt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ds(t);if(typeof n=="string"){const r=N(this,gt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Ds(t);if(typeof n=="string"){const o=(r=N(this,gt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){_e.batch(()=>{N(this,Bt).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,Bt).clear(),N(this,gt).clear()})}getAll(){return Array.from(N(this,Bt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nf(n,r))}findAll(t={}){return this.getAll().filter(n=>nf(t,n))}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return _e.batch(()=>Promise.all(t.map(n=>n.continue().catch(mt))))}},Bt=new WeakMap,gt=new WeakMap,os=new WeakMap,Nf);function Ds(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Tt,Pf,Z2=(Pf=class extends ra{constructor(t={}){super();X(this,Tt);this.config=t,$(this,Tt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??cc(o,n);let i=this.get(s);return i||(i=new K2({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){N(this,Tt).has(t.queryHash)||(N(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,Tt).get(t)}getAll(){return[...N(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>tf(t,r)):n}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){_e.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_e.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,Pf),de,gn,vn,Ur,Vr,yn,Hr,Wr,Af,J2=(Af=class{constructor(e={}){X(this,de);X(this,gn);X(this,vn);X(this,Ur);X(this,Vr);X(this,yn);X(this,Hr);X(this,Wr);$(this,de,e.queryCache||new Z2),$(this,gn,e.mutationCache||new X2),$(this,vn,e.defaultOptions||{}),$(this,Ur,new Map),$(this,Vr,new Map),$(this,yn,0)}mount(){gs(this,yn)._++,N(this,yn)===1&&($(this,Hr,dg.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,de).onFocus())})),$(this,Wr,ji.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,de).onOnline())})))}unmount(){var e,t;gs(this,yn)._--,N(this,yn)===0&&((e=N(this,Hr))==null||e.call(this),$(this,Hr,void 0),(t=N(this,Wr))==null||t.call(this),$(this,Wr,void 0))}isFetching(e){return N(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,gn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Yl(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return N(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=N(this,de).get(r.queryHash),s=o==null?void 0:o.state.data,i=R2(t,s);if(i!==void 0)return N(this,de).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return _e.batch(()=>N(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,de);_e.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,de);return _e.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=_e.batch(()=>N(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(mt).catch(mt)}invalidateQueries(e,t={}){return _e.batch(()=>(N(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=_e.batch(()=>N(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(mt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(mt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,de).build(this,t);return n.isStaleByTime(Yl(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(mt).catch(mt)}fetchInfiniteQuery(e){return e.behavior=lf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(mt).catch(mt)}ensureInfiniteQueryData(e){return e.behavior=lf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ji.isOnline()?N(this,gn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,de)}getMutationCache(){return N(this,gn)}getDefaultOptions(){return N(this,vn)}setDefaultOptions(e){$(this,vn,e)}setQueryDefaults(e,t){N(this,Ur).set(es(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,Ur).values()],n={};return t.forEach(r=>{ts(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,Vr).set(es(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Vr).values()],n={};return t.forEach(r=>{ts(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=cc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===dc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,de).clear(),N(this,gn).clear()}},de=new WeakMap,gn=new WeakMap,vn=new WeakMap,Ur=new WeakMap,Vr=new WeakMap,yn=new WeakMap,Hr=new WeakMap,Wr=new WeakMap,Af),eb=x.createContext(void 0),tb=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(eb.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function xg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rb(){return Math.random().toString(36).substr(2,8)}function df(e,t){return{usr:e.state,key:e.key,idx:t}}function Zl(e,t,n,r){return n===void 0&&(n=null),Ri({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?oa(t):t,{state:n,key:t&&t.key||r||rb()})}function wg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function oa(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ob(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=bn.Pop,l=null,u=d();u==null&&(u=0,i.replaceState(Ri({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function p(){a=bn.Pop;let w=d(),m=w==null?null:w-u;u=w,l&&l({action:a,location:y.location,delta:m})}function g(w,m){a=bn.Push;let h=Zl(y.location,w,m);u=d()+1;let v=df(h,u),C=y.createHref(h);try{i.pushState(v,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}s&&l&&l({action:a,location:y.location,delta:1})}function f(w,m){a=bn.Replace;let h=Zl(y.location,w,m);u=d();let v=df(h,u),C=y.createHref(h);i.replaceState(v,"",C),s&&l&&l({action:a,location:y.location,delta:0})}function b(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof w=="string"?w:wg(w);return h=h.replace(/ $/,"%20"),He(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let y={get action(){return a},get location(){return e(o,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(cf,p),l=w,()=>{o.removeEventListener(cf,p),l=null}},createHref(w){return t(o,w)},createURL:b,encodeLocation(w){let m=b(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:f,go(w){return i.go(w)}};return y}var ff;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ff||(ff={}));function sb(e,t,n){return n===void 0&&(n="/"),ib(e,t,n)}function ib(e,t,n,r){let o=typeof t=="string"?oa(t):t,s=Eg(o.pathname||"/",n);if(s==null)return null;let i=bg(e);ab(i);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Lr([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(He(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),bg(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:hb(u,s.index),routesMeta:d})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of Cg(s.path))o(s,i,l)}),t}function Cg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=Cg(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function ab(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mb(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lb=/^:[\w-]+$/,ub=3,cb=2,db=1,fb=10,pb=-2,pf=e=>e==="*";function hb(e,t){let n=e.split("/"),r=n.length;return n.some(pf)&&(r+=pb),t&&(r+=cb),n.filter(o=>!pf(o)).reduce((o,s)=>o+(lb.test(s)?ub:s===""?db:fb),r)}function mb(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function gb(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a{let{paramName:g,isOptional:f}=d;if(g==="*"){let y=a[p]||"";i=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const b=a[p];return f&&!b?u[g]=void 0:u[g]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function yb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),xg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function xb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Eg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Lr=e=>e.join("/").replace(/\/\/+/g,"/"),wb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function bb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Sg=["post","put","patch","delete"];new Set(Sg);const Cb=["get",...Sg];new Set(Cb);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},a,w.params),pathname:Lr([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Lr([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&y?x.createElement(sa.Provider,{value:{location:Oi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:bn.Pop}},y):y}function Pb(){let e=Ib(),t=bb(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const Ab=x.createElement(Pb,null);class Tb extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(ia.Provider,{value:this.props.routeContext},x.createElement(Ng.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jb(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(Eb);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(ia.Provider,{value:t},r)}function Rb(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=i.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||He(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,p,g)=>{let f,b=!1,y=null,w=null;n&&(f=a&&p.route.id?a[p.route.id]:void 0,y=p.route.errorElement||Ab,l&&(u<0&&g===0?(Fb("route-fallback"),b=!0,w=null):u===g&&(b=!0,w=p.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,g+1)),h=()=>{let v;return f?v=y:b?v=w:p.route.Component?v=x.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=d,x.createElement(jb,{match:p,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?x.createElement(Tb,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Ag=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ag||{});function Ob(e){let t=x.useContext(Sb);return t||He(!1),t}function Mb(e){let t=x.useContext(ia);return t||He(!1),t}function _b(e){let t=Mb(),n=t.matches[t.matches.length-1];return n.route.id||He(!1),n.route.id}function Ib(){var e;let t=x.useContext(Ng),n=Ob(Ag.UseRouteError),r=_b();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const hf={};function Fb(e,t,n){hf[e]||(hf[e]=!0)}function Lb(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ti(e){He(!1)}function Db(e){let{basename:t="/",children:n=null,location:r,navigationType:o=bn.Pop,navigator:s,static:i=!1,future:a}=e;fc()&&He(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:s,static:i,future:Oi({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=oa(r));let{pathname:d="/",search:p="",hash:g="",state:f=null,key:b="default"}=r,y=x.useMemo(()=>{let w=Eg(d,l);return w==null?null:{location:{pathname:w,search:p,hash:g,state:f,key:b},navigationType:o}},[l,d,p,g,f,b,o]);return y==null?null:x.createElement(kg.Provider,{value:u},x.createElement(sa.Provider,{children:n,value:y}))}function zb(e){let{children:t,location:n}=e;return kb(Jl(t),n)}new Promise(()=>{});function Jl(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let s=[...t,o];if(r.type===x.Fragment){n.push.apply(n,Jl(r.props.children,s));return}r.type!==ti&&He(!1),!r.props.index||!r.props.children||He(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Jl(r.props.children,s)),n.push(i)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const $b="6";try{window.__reactRouterVersion=$b}catch{}const Bb="startTransition",mf=$f[Bb];function Ub(e){let{basename:t,children:n,future:r,window:o}=e,s=x.useRef();s.current==null&&(s.current=nb({window:o,v5Compat:!0}));let i=s.current,[a,l]=x.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=x.useCallback(p=>{u&&mf?mf(()=>l(p)):l(p)},[l,u]);return x.useLayoutEffect(()=>i.listen(d),[i,d]),x.useEffect(()=>Lb(r),[r]),x.createElement(Db,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var gf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gf||(gf={}));var vf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vf||(vf={}));const yf=[{label:"About Us",href:"/about-us/",children:[{label:"Chairman's Message",href:"/about-us/chairmans-message/",active:!0},{label:"Board of Directors",href:"/about-us/board-of-directors/"},{label:"Our History",href:"/about-us/history/"},{label:"Corporate Governance",href:"/about-us/governance/"}]},{label:"Investment Strategy",href:"/investment-strategy/"},{label:"Investor Relations",href:"/investor-relations/"},{label:"Portfolio",href:"/portfolio/"},{label:"Sustainability",href:"/sustainability/"},{label:"News & Media",href:"/news/"},{label:"Contact",href:"/contact/"}];function Vb(){const[e,t]=x.useState(!1),[n,r]=x.useState(null);return c.jsxs("header",{className:"bg-white border-b border-[#E4E9F0] sticky top-0 z-50 shadow-sm",children:[c.jsx("div",{className:"bg-[#0A2540] text-white",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 py-2 flex justify-between items-center text-xs",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("span",{className:"text-[#C6A142] font-arabic",children:"شركة ألمانزا للاستثمار ش.م.ك.م"}),c.jsx("span",{className:"text-gray-400 hidden sm:block",children:"|"}),c.jsx("span",{className:"text-gray-300 hidden sm:block",children:"Regulated by CMA Kuwait · CBK Supervised"})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{className:"text-gray-300 hover:text-[#C6A142] transition-colors",children:"EN"}),c.jsx("span",{className:"text-gray-600",children:"|"}),c.jsx("button",{className:"text-gray-300 hover:text-[#C6A142] transition-colors font-arabic",children:"AR"})]})]})}),c.jsx("div",{className:"max-w-[1280px] mx-auto px-6",children:c.jsxs("div",{className:"flex items-center justify-between h-16",children:[c.jsxs("a",{href:"/",className:"flex items-center gap-3 shrink-0",children:[c.jsx("div",{className:"w-10 h-10 bg-[#0A2540] rounded-lg flex items-center justify-center",children:c.jsx("span",{className:"text-[#C6A142] font-bold text-lg tracking-tight",style:{fontFamily:"Cormorant Garamond, serif"},children:"A"})}),c.jsxs("div",{children:[c.jsx("div",{className:"font-bold text-[#0A2540] text-base leading-tight tracking-wide",children:"ALMANZA"}),c.jsx("div",{className:"text-[10px] text-[#4A5B6E] tracking-widest uppercase",children:"Investment Company"})]})]}),c.jsx("nav",{className:"hidden lg:flex items-center gap-1",children:yf.map(o=>c.jsxs("div",{className:"relative",onMouseEnter:()=>o.children&&r(o.label),onMouseLeave:()=>r(null),children:[c.jsxs("a",{href:o.href,className:`flex items-center gap-1 px-3 py-2 text-sm font-medium rounded transition-colors ${o.label==="About Us"?"text-[#C6A142]":"text-[#1A2A3A] hover:text-[#0A2540]"}`,children:[o.label,o.children&&c.jsx(vx,{className:"w-3 h-3"})]}),o.children&&n===o.label&&c.jsx("div",{className:"absolute top-full left-0 bg-white border border-[#E4E9F0] rounded-lg shadow-lg py-2 min-w-[220px] z-50",children:o.children.map(s=>c.jsx("a",{href:s.href,className:`block px-4 py-2.5 text-sm transition-colors ${s.active?"text-[#C6A142] bg-[#F8FAFE] font-medium border-l-2 border-[#C6A142]":"text-[#1A2A3A] hover:bg-[#F8FAFE] hover:text-[#0A2540]"}`,children:s.label},s.label))})]},o.label))}),c.jsx("div",{className:"hidden lg:flex items-center gap-3",children:c.jsx("a",{href:"/investor-relations/overview/",className:"px-4 py-2 border border-[#C6A142] text-[#C6A142] text-sm font-medium rounded-full hover:bg-[#C6A142] hover:text-white transition-all duration-200",children:"Investor Portal"})}),c.jsx("button",{className:"lg:hidden p-2 text-[#0A2540]",onClick:()=>t(!e),children:e?c.jsx(Sm,{className:"w-6 h-6"}):c.jsx(Cx,{className:"w-6 h-6"})})]})}),e&&c.jsx("div",{className:"lg:hidden bg-white border-t border-[#E4E9F0] px-6 py-4 space-y-1",children:yf.map(o=>c.jsx("a",{href:o.href,className:`block py-2.5 text-sm font-medium border-b border-[#E4E9F0] last:border-0 ${o.label==="About Us"?"text-[#C6A142]":"text-[#1A2A3A]"}`,children:o.label},o.label))})]})}const Ha={company:[{label:"Chairman's Message",href:"/about-us/chairmans-message/"},{label:"Board of Directors",href:"/about-us/board-of-directors/"},{label:"Corporate Governance",href:"/about-us/governance/"},{label:"Our History",href:"/about-us/history/"}],investments:[{label:"Private Equity",href:"/investments/private-equity/"},{label:"Real Estate",href:"/investments/real-estate/"},{label:"Fixed Income",href:"/investments/fixed-income/"},{label:"Venture Capital",href:"/investments/venture-capital/"}],investors:[{label:"Annual Reports",href:"/investor-relations/annual-reports/"},{label:"Financial Results",href:"/investor-relations/financials/"},{label:"Shareholder Info",href:"/investor-relations/shareholders/"},{label:"AGM Materials",href:"/investor-relations/agm/"}]};function Hb(){return c.jsx("footer",{className:"bg-[#0A2540] text-white border-t-4 border-[#C6A142]",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 py-16",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-10",children:[c.jsxs("div",{className:"lg:col-span-2",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[c.jsx("div",{className:"w-10 h-10 bg-[#C6A142] rounded-lg flex items-center justify-center",children:c.jsx("span",{className:"text-[#0A2540] font-bold text-lg",style:{fontFamily:"Cormorant Garamond, serif"},children:"A"})}),c.jsxs("div",{children:[c.jsx("div",{className:"font-bold text-white text-base tracking-wide",children:"ALMANZA"}),c.jsx("div",{className:"text-[10px] text-[#C6A142] tracking-widest uppercase",children:"Investment Company KSCC"})]})]}),c.jsx("p",{className:"text-gray-400 text-sm leading-relaxed mb-3",children:"A premier Kuwaiti shareholding investment company delivering Shari'a-compliant investment solutions across the GCC and global markets."}),c.jsx("p",{className:"text-[#C6A142] font-arabic text-sm leading-relaxed mb-5",children:"شركة ألمانزا للاستثمار — شركة مساهمة كويتية مقفلة"}),c.jsxs("div",{className:"space-y-2 text-xs text-gray-400",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(bx,{className:"w-3.5 h-3.5 text-[#C6A142] shrink-0"}),c.jsx("span",{children:"Al Sharq, Ahmad Al-Jaber St., Kuwait City, Kuwait"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Cm,{className:"w-3.5 h-3.5 text-[#C6A142] shrink-0"}),c.jsx("span",{children:"+965 2200 XXXX"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(bm,{className:"w-3.5 h-3.5 text-[#C6A142] shrink-0"}),c.jsx("span",{children:"investors@almanza.com.kw"})]})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-[#C6A142] text-xs font-semibold uppercase tracking-widest mb-4",children:"About Us"}),c.jsx("ul",{className:"space-y-2.5",children:Ha.company.map(e=>c.jsx("li",{children:c.jsx("a",{href:e.href,className:"text-gray-400 text-sm hover:text-[#C6A142] transition-colors",children:e.label})},e.label))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-[#C6A142] text-xs font-semibold uppercase tracking-widest mb-4",children:"Investments"}),c.jsx("ul",{className:"space-y-2.5",children:Ha.investments.map(e=>c.jsx("li",{children:c.jsx("a",{href:e.href,className:"text-gray-400 text-sm hover:text-[#C6A142] transition-colors",children:e.label})},e.label))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-[#C6A142] text-xs font-semibold uppercase tracking-widest mb-4",children:"Investors"}),c.jsx("ul",{className:"space-y-2.5",children:Ha.investors.map(e=>c.jsx("li",{children:c.jsx("a",{href:e.href,className:"text-gray-400 text-sm hover:text-[#C6A142] transition-colors",children:e.label})},e.label))})]})]}),c.jsxs("div",{className:"mt-12 pt-8 border-t border-white/10",children:[c.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2 bg-white/5 border border-white/10 rounded-lg px-4 py-2.5",children:[c.jsx(Dd,{className:"w-4 h-4 text-[#C6A142]"}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs font-semibold text-white",children:"CMA Licensed"}),c.jsx("div",{className:"text-[10px] text-gray-400",children:"Capital Markets Authority, Kuwait"})]})]}),c.jsxs("div",{className:"flex items-center gap-2 bg-white/5 border border-white/10 rounded-lg px-4 py-2.5",children:[c.jsx(hx,{className:"w-4 h-4 text-[#C6A142]"}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs font-semibold text-white",children:"CBK Supervised"}),c.jsx("div",{className:"text-[10px] text-gray-400",children:"Central Bank of Kuwait"})]})]}),c.jsxs("div",{className:"flex items-center gap-2 bg-white/5 border border-white/10 rounded-lg px-4 py-2.5",children:[c.jsx(Dd,{className:"w-4 h-4 text-[#C6A142]"}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs font-semibold text-white",children:"Shari'a Compliant"}),c.jsx("div",{className:"text-[10px] text-gray-400",children:"Shari'a Supervisory Board Certified"})]})]})]}),c.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:[c.jsx("div",{className:"text-[10px] text-gray-500 max-w-xl leading-relaxed",children:"© 2026 Almanza Investment Company KSCC. All rights reserved. Almanza is a Kuwaiti Closed Shareholding Company (KSCC) licensed by the Capital Markets Authority of Kuwait (License No. XX-XXXX). Past performance is not indicative of future results. This website does not constitute an offer to sell or solicitation to buy securities. Investments involve risk, including possible loss of principal."}),c.jsxs("div",{className:"flex gap-4 text-[11px] text-gray-500 shrink-0",children:[c.jsx("a",{href:"/privacy-policy/",className:"hover:text-[#C6A142] transition-colors",children:"Privacy Policy"}),c.jsx("a",{href:"/terms/",className:"hover:text-[#C6A142] transition-colors",children:"Terms of Use"}),c.jsx("a",{href:"/disclosures/",className:"hover:text-[#C6A142] transition-colors",children:"Disclosures"})]})]})]})]})})}const Tg="/assets/hero-pattern-Bco3h0hx.jpg";function Wb(){return c.jsxs("section",{className:"relative overflow-hidden bg-[#0A2540]",children:[c.jsx("div",{className:"absolute inset-0 bg-cover bg-center opacity-20",style:{backgroundImage:`url(${Tg})`}}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#0A2540]/80 via-[#0A2540]/60 to-[#0A2540]/90"}),c.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-[#C6A142]/60 to-transparent"}),c.jsx("div",{className:"absolute bottom-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-[#C6A142]/40 to-transparent"}),c.jsxs("div",{className:"relative max-w-[1280px] mx-auto px-6 py-16 md:py-20",children:[c.jsx("nav",{className:"mb-8","aria-label":"Breadcrumb",children:c.jsxs("ol",{className:"flex items-center gap-2 text-xs text-gray-400",children:[c.jsx("li",{children:c.jsx("a",{href:"/",className:"text-[#C6A142] hover:text-[#E8C97A] transition-colors",children:"Home"})}),c.jsx("li",{className:"text-gray-600",children:"/"}),c.jsx("li",{children:c.jsx("a",{href:"/about-us/",className:"text-[#C6A142] hover:text-[#E8C97A] transition-colors",children:"About Us"})}),c.jsx("li",{className:"text-gray-600",children:"/"}),c.jsx("li",{className:"text-gray-300",children:"Chairman's Message"})]})}),c.jsxs("div",{className:"max-w-3xl",children:[c.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-white leading-tight mb-3",style:{fontFamily:"Cormorant Garamond, serif",fontWeight:600},children:"Chairman's Message"}),c.jsx("span",{className:"block text-2xl md:text-3xl font-arabic text-[#1E6F9F] mt-2 mb-6",dir:"rtl",lang:"ar",children:"كلمة رئيس مجلس الإدارة"}),c.jsx("div",{className:"gold-divider mb-6"}),c.jsx("p",{className:"text-gray-300 text-base leading-relaxed max-w-2xl",children:"Annual strategic communication to shareholders, partners, and the investment community — fiscal year 2025."})]}),c.jsx("div",{className:"mt-10 pt-6 border-t border-white/10 max-w-3xl",children:c.jsxs("p",{className:"text-xs text-[#C6A142]/80 leading-relaxed",children:[c.jsx("span",{className:"font-semibold text-[#C6A142]",children:"REGULATORY NOTICE —"})," ","This message contains forward-looking statements based on current expectations, estimates, and projections about global and regional markets. These statements involve known and unknown risks and uncertainties. Actual results may differ materially from those expressed or implied. Almanza Investment Company KSCC is licensed by the Capital Markets Authority of Kuwait and supervised by the Central Bank of Kuwait."]})})]})]})}const Kb="/assets/chairman-photo-CCVNw3E0.jpg";function ao(e=.15){const[t,n]=x.useState(!1),r=x.useRef(null);return x.useEffect(()=>{const o=new IntersectionObserver(s=>{s[0].isIntersecting&&(n(!0),o.disconnect())},{threshold:e});return r.current&&o.observe(r.current),()=>o.disconnect()},[e]),{isVisible:t,ref:r}}function Qb(){const{isVisible:e,ref:t}=ao(.2);return c.jsx("section",{className:"bg-[#F8FAFE] py-16 md:py-20","aria-label":"Chairman Profile",children:c.jsx("div",{ref:t,className:`max-w-[1280px] mx-auto px-6 transition-all duration-700 ${e?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-10 lg:gap-16 items-center",children:[c.jsx("div",{className:"flex justify-center lg:justify-start",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute -inset-1.5 rounded-2xl border-2 border-[#C6A142]/40"}),c.jsx("img",{src:Kb,alt:"His Excellency Sheikh Abdullah Khalid Al-Almanza – Chairman of the Board, Almanza Investment Company KSCC",className:"relative w-56 h-72 md:w-64 md:h-80 object-cover rounded-2xl shadow-2xl",style:{objectPosition:"center top"}}),c.jsx("div",{className:"absolute -bottom-3 -right-3 w-12 h-12 bg-[#C6A142] rounded-lg flex items-center justify-center shadow-lg",children:c.jsx("span",{className:"text-white font-bold text-lg",style:{fontFamily:"Cormorant Garamond, serif"},children:"A"})})]})}),c.jsxs("div",{className:"lg:col-span-2",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx("div",{className:"h-px w-8 bg-[#C6A142]"}),c.jsx("span",{className:"text-[#C6A142] text-xs font-semibold uppercase tracking-widest",children:"Board Leadership"})]}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0A2540] mb-1",style:{fontFamily:"Cormorant Garamond, serif",fontWeight:600},children:"H.E. Sheikh Abdullah Khalid Al-Almanza"}),c.jsx("p",{className:"font-arabic text-[#1E6F9F] text-lg mb-4",dir:"rtl",lang:"ar",children:"معالي الشيخ عبدالله خالد الألمانزا"}),c.jsx("p",{className:"text-[#4A5B6E] font-semibold text-base mb-1",children:"Chairman of the Board of Directors"}),c.jsx("p",{className:"text-[#0A2540] font-medium text-sm mb-5",children:"Almanza Investment Company KSCC — Kuwait"}),c.jsx("div",{className:"h-px bg-[#E4E9F0] mb-5"}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-6 text-sm",children:[c.jsxs("div",{className:"bg-white rounded-xl p-4 border border-[#E4E9F0]",children:[c.jsx("div",{className:"text-[#C6A142] font-semibold text-xs uppercase tracking-wide mb-1",children:"Tenure"}),c.jsx("div",{className:"text-[#0A2540] font-medium",children:"Appointed Chairman, 2008"}),c.jsx("div",{className:"text-[#4A5B6E] text-xs mt-0.5",children:"17+ years of board leadership"})]}),c.jsxs("div",{className:"bg-white rounded-xl p-4 border border-[#E4E9F0]",children:[c.jsx("div",{className:"text-[#C6A142] font-semibold text-xs uppercase tracking-wide mb-1",children:"Previous Roles"}),c.jsx("div",{className:"text-[#0A2540] font-medium",children:"Minister of Finance, Kuwait"}),c.jsx("div",{className:"text-[#4A5B6E] text-xs mt-0.5",children:"2002–2008 · KIA Board Member"})]})]}),c.jsx("p",{className:"text-[#4A5B6E] text-sm leading-relaxed",children:"His Excellency Sheikh Abdullah Khalid Al-Almanza has over three decades of experience in GCC financial markets, sovereign wealth management, and Islamic finance. He has held senior advisory positions with the Kuwait Investment Authority (KIA), the Gulf Investment Corporation (GIC), and has served on the boards of leading regional banks and industrial conglomerates. A graduate of the London School of Economics and the Wharton School of Business, H.E. remains a pivotal architect of Kuwait's post-oil economic diversification strategy."})]})]})})})}function Gb(){const{isVisible:e,ref:t}=ao(.1);return c.jsx("section",{className:"bg-white py-16 md:py-20","aria-label":"Chairman's Message",children:c.jsxs("div",{className:"max-w-[900px] mx-auto px-6",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-10",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("span",{className:"text-[#C6A142] text-xs font-semibold uppercase tracking-widest",children:"Annual Communication 2025"})]}),c.jsxs("div",{className:"mb-10 pb-8 border-b border-[#E4E9F0]",children:[c.jsx("p",{className:"text-[#0A2540] font-semibold text-lg mb-2",children:"Dear Shareholders, Partners, and Colleagues,"}),c.jsx("p",{className:"font-arabic text-[#1E6F9F] text-lg leading-relaxed",dir:"rtl",lang:"ar",children:"السادة المساهمين والشركاء والزملاء الكرام،"})]}),c.jsxs("div",{ref:t,className:`font-serif-message text-[#1A2A3A] transition-all duration-700 ${e?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,style:{fontSize:"19px",lineHeight:"1.75"},children:[c.jsx("p",{className:"mb-7",children:"On behalf of the Board of Directors of Almanza Investment Company KSCC, I am honoured to present our annual review for the fiscal year ending 31 December 2025. This year stands as a defining chapter in the history of our institution — one marked by remarkable financial performance, strategic depth, and an unwavering commitment to the values upon which Almanza was founded: integrity, Shari'a compliance, and long-term value creation for our shareholders."}),c.jsxs("p",{className:"mb-7",children:["Despite a complex global economic backdrop characterised by persistent geopolitical tensions, elevated interest rate environments in Western markets, and evolving commodity dynamics, Almanza delivered a consolidated net profit of ",c.jsx("strong",{className:"text-[#0A2540] font-semibold",children:"$428 million"})," — a year-on-year increase of 12%. Our total assets reached ",c.jsx("strong",{className:"text-[#0A2540] font-semibold",children:"$47.2 billion"}),", and our return on equity improved to ",c.jsx("strong",{className:"text-[#0A2540] font-semibold",children:"14.2%"}),", exceeding our medium-term targets. These results are a direct testament to the resilience of our diversified, Shari'a-compliant investment framework and the exceptional dedication of our team across Kuwait and the wider GCC region."]}),c.jsx("p",{className:"mb-7",children:"As a Kuwaiti company, our roots and responsibilities run deep in this region. In 2025, we materially increased our direct investment commitments within the framework of Saudi Arabia's Vision 2030, acquiring strategic positions in infrastructure, industrial logistics, and financial services. We expanded our premium real estate portfolio in Dubai and Abu Dhabi, where demand fundamentals remain structurally compelling. We also launched the Almanza GCC Ventures Fund — a dedicated Shari'a-compliant vehicle targeting high-growth technology startups headquartered in Qatar, Bahrain, and Oman. I am proud to report that this fund closed above target at $1.4 billion in its first closing, demonstrating the regional investment community's confidence in our platform."}),c.jsxs("p",{className:"mb-7",children:["Looking ahead, our strategic priorities for 2026–2028 are clearly defined and institutionally anchored. ",c.jsx("em",{children:"First"}),", we will deepen our investment presence across all six GCC member states, transitioning from a Kuwait-centric model to a fully integrated pan-Gulf investment platform. ",c.jsx("em",{children:"Second"}),", we will launch two new Shari'a-compliant private equity funds — one targeting the healthcare sector, which we believe is structurally undercapitalised across the GCC, and another focused on renewable energy and the energy transition, aligned with Kuwait's National Development Plan and the broader GCC green agenda. ",c.jsx("em",{children:"Third"}),", we are making significant investments in digital transformation: AI-driven portfolio analytics, real-time investor reporting platforms, and a next-generation CRM system to serve our growing institutional client base with the quality they deserve. ",c.jsx("em",{children:"Fourth"}),", we remain deeply committed to human capital — specifically to developing Kuwaiti talent in finance, investment management, and technology."]}),c.jsx("p",{className:"mb-7",children:"Almanza has always operated within the highest standards of regulatory compliance and corporate governance. We are fully licensed by the Capital Markets Authority (CMA) of Kuwait and supervised by the Central Bank of Kuwait (CBK). Our Shari'a Supervisory Board — composed of distinguished scholars — reviews every investment mandate, fund structure, and financial instrument to ensure complete conformity with Islamic principles. I wish to be unequivocal: Shari'a compliance at Almanza is not a regulatory constraint. It is a fundamental competitive advantage that aligns our interests with the deepest values of our shareholders, our community, and our region."}),c.jsx("p",{className:"mb-7",children:"Environmental, Social, and Governance (ESG) considerations are increasingly integrated into our investment selection and portfolio management processes. In 2025, we published our inaugural Sustainability Report — a milestone that reflects our commitment to responsible stewardship of capital. We have committed to achieving a net-zero portfolio by 2045, in alignment with the Gulf Cooperation Council's regional climate commitments and Kuwait's National Sustainability Strategy."}),c.jsx("p",{className:"mb-7",children:"I extend my sincere and deepest gratitude to our valued shareholders, whose trust and patience have been the cornerstone of Al Amal's success. I thank our institutional clients for their continued confidence in our investment capabilities. I extend my appreciation to the Capital Markets Authority and the Central Bank of Kuwait for their thoughtful regulatory stewardship, which continues to strengthen Kuwait's position as a leading financial hub in the Arab world. And above all, I thank the more than 150 dedicated professionals at Almanza — across our Kuwait headquarters and our offices in Riyadh, Dubai, and London — whose talent, integrity, and passion are the true foundation of everything we have built and everything we aspire to build."}),c.jsx("p",{className:"mb-7",children:"Almanza Investment Company KSCC is built for the long term. We are optimistic about Kuwait's economic trajectory, about the GCC's continued structural transformation, and about the sustained global appetite for Shari'a-compliant investment platforms of institutional quality. The path ahead is both demanding and full of opportunity. We approach it with the discipline, humility, and ambition that have always defined this institution."}),c.jsx("p",{className:"mb-7",children:"I invite you to study our 2025 Annual Report in its entirety, to engage with our Investor Relations team, and to join us in shaping a financially prosperous and ethically grounded future."})]}),c.jsxs("div",{className:"mt-12 pt-8 border-t border-[#E4E9F0]",children:[c.jsx("div",{className:"signature-script mb-3 select-none","aria-hidden":"true",children:"Abdullah Khalid Al-Almanza"}),c.jsx("p",{className:"font-semibold text-[#0A2540] text-base mb-1",children:"H.E. Sheikh Abdullah Khalid Al-Almanza"}),c.jsx("p",{className:"text-[#4A5B6E] text-sm mb-1",children:"Chairman of the Board of Directors"}),c.jsx("p",{className:"text-[#4A5B6E] text-sm mb-3",children:"Almanza Investment Company KSCC"}),c.jsxs("p",{className:"text-[#C6A142] text-sm font-medium",children:["15 January 2026  | "," ",c.jsx("span",{className:"font-arabic",lang:"ar",dir:"rtl",children:"١٥ يناير ٢٠٢٦"})]})]})]})})}const Yb=[{Icon:wx,title:"Deepening GCC Presence",titleAr:"تعميق الحضور في دول الخليج",description:"Transition from Kuwait-centric operations to a fully integrated pan-Gulf investment platform, with expanded direct investment mandates across Saudi Arabia, UAE, Qatar, Oman, and Bahrain.",tag:"Geographic Expansion"},{Icon:mx,title:"Shari'a-Compliant Innovation",titleAr:"الابتكار المتوافق مع الشريعة",description:"Launch two new Shari'a-compliant private equity funds targeting healthcare and renewable energy — sectors structurally undercapitalised across the GCC and aligned with national development plans.",tag:"Islamic Finance"},{Icon:yx,title:"Digital Transformation",titleAr:"التحول الرقمي",description:"Deploy AI-driven portfolio analytics, real-time investor reporting platforms, and next-generation client management systems to deliver institutional-quality transparency and service.",tag:"Technology"},{Icon:Em,title:"Human Capital Development",titleAr:"تطوير رأس المال البشري",description:"Invest in Kuwaiti talent through structured leadership development programs, international secondments, and partnerships with leading GCC universities and business schools.",tag:"People"}];function qb(){const{isVisible:e,ref:t}=ao(.15);return c.jsx("section",{className:"bg-[#F8FAFE] py-16 md:py-20","aria-label":"Strategic Priorities",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-12",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("span",{className:"text-[#C6A142] text-xs font-semibold uppercase tracking-widest",children:"Extracted from the Chairman's Message"})]}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0A2540]",style:{fontFamily:"Cormorant Garamond, serif",fontWeight:600},children:"Key Strategic Priorities 2026–2028"}),c.jsx("p",{className:"text-[#4A5B6E] mt-2 text-base",children:"Four pillars guiding Al Amal's institutional growth over the next three years."})]}),c.jsx("div",{ref:t,className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-5",children:Yb.map((n,r)=>c.jsxs("div",{className:`bg-white rounded-2xl border border-[#E4E9F0] p-6 hover:border-[#C6A142] hover:shadow-lg transition-all duration-300 group cursor-default ${e?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,style:{transitionDelay:`${r*100}ms`},children:[c.jsx("div",{className:"w-12 h-12 bg-[#F8FAFE] border border-[#E4E9F0] group-hover:border-[#C6A142] group-hover:bg-[#FBF6ED] rounded-xl flex items-center justify-center mb-5 transition-all duration-300",children:c.jsx(n.Icon,{className:"w-5 h-5 text-[#C6A142]"})}),c.jsx("span",{className:"inline-block text-[10px] font-semibold uppercase tracking-widest text-[#C6A142] bg-[#FBF6ED] px-2 py-1 rounded mb-3",children:n.tag}),c.jsx("h3",{className:"text-[#0A2540] font-bold text-lg mb-1 leading-tight",style:{fontFamily:"Cormorant Garamond, serif",fontWeight:600},children:n.title}),c.jsx("p",{className:"font-arabic text-[#1E6F9F] text-sm mb-3",dir:"rtl",lang:"ar",children:n.titleAr}),c.jsx("p",{className:"text-[#4A5B6E] text-sm leading-relaxed",children:n.description}),c.jsx("div",{className:"h-0.5 bg-gradient-to-r from-[#C6A142] to-transparent mt-5 opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]},n.title))})]})})}function Xb({end:e,duration:t=2e3,decimals:n=0}){const[r,o]=x.useState(0),[s,i]=x.useState(!1),a=x.useRef(null);return x.useEffect(()=>{const l=new IntersectionObserver(u=>{u[0].isIntersecting&&!s&&i(!0)},{threshold:.3});return a.current&&l.observe(a.current),()=>l.disconnect()},[s]),x.useEffect(()=>{if(!s)return;const l=performance.now(),u=0,d=p=>{const g=p-l,f=Math.min(g/t,1),b=1-Math.pow(1-f,3),y=u+(e-u)*b;o(parseFloat(y.toFixed(n))),f<1&&requestAnimationFrame(d)};requestAnimationFrame(d)},[s,e,t,n]),{count:r,ref:a}}function zs({label:e,labelAr:t,prefix:n="",suffix:r="",value:o,decimals:s=0,change:i,changePositive:a,note:l,delay:u=0}){const{count:d,ref:p}=Xb({end:o,duration:2200,decimals:s}),{isVisible:g,ref:f}=ao(.2),b=y=>{p.current=y,f.current=y};return c.jsxs("div",{ref:b,className:`bg-white rounded-2xl border border-[#E4E9F0] p-7 hover:border-[#C6A142] hover:shadow-lg transition-all duration-300 group ${g?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,style:{transitionDelay:`${u}ms`,transition:"opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s"},children:[c.jsxs("div",{className:`inline-flex items-center gap-1 text-xs font-semibold px-2 py-1 rounded-full mb-4 ${a?"bg-green-50 text-green-700":"bg-red-50 text-red-700"}`,children:[c.jsx(px,{className:"w-3 h-3"}),i]}),c.jsxs("div",{className:"text-[#C6A142] font-bold mb-2",style:{fontSize:"42px",fontFamily:"Inter, sans-serif",letterSpacing:"-0.02em",lineHeight:1},children:[n,s>0?d.toFixed(s):Math.round(d),r]}),c.jsx("p",{className:"text-[#0A2540] font-semibold text-base mb-0.5",children:e}),c.jsx("p",{className:"font-arabic text-[#1E6F9F] text-sm mb-3",dir:"rtl",lang:"ar",children:t}),c.jsx("p",{className:"text-[#4A5B6E] text-xs",children:l})]})}function Zb(){return c.jsx("section",{className:"bg-white py-16 md:py-20","aria-label":"Performance Highlights",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-6 mb-12",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("span",{className:"text-[#C6A142] text-xs font-semibold uppercase tracking-widest",children:"FY 2025 Results"})]}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0A2540]",style:{fontFamily:"Cormorant Garamond, serif",fontWeight:600},children:"Performance Highlights"}),c.jsx("p",{className:"text-[#4A5B6E] mt-2 text-base",children:"Key financial metrics for the fiscal year ended 31 December 2025."})]}),c.jsxs("div",{className:"flex items-center gap-2 text-sm text-[#4A5B6E] bg-[#F8FAFE] border border-[#E4E9F0] rounded-xl px-4 py-2.5 shrink-0",children:[c.jsx(Sx,{className:"w-4 h-4 text-[#C6A142]"}),c.jsx("span",{children:"All figures in USD unless noted"})]})]}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5",children:[c.jsx(zs,{label:"Net Profit",labelAr:"صافي الربح",prefix:"$",suffix:"M",value:428,change:"▲ 12% YoY",changePositive:!0,note:"Consolidated, after Shari'a board review · FY 2025",delay:0}),c.jsx(zs,{label:"Total Assets",labelAr:"إجمالي الأصول",prefix:"$",suffix:"B",value:47.2,decimals:1,change:"▲ 8% YoY",changePositive:!0,note:"Across all asset classes and geographies · Dec 2025",delay:100}),c.jsx(zs,{label:"Return on Equity",labelAr:"العائد على حقوق الملكية",suffix:"%",value:14.2,decimals:1,change:"+150 bps",changePositive:!0,note:"Exceeds medium-term target of 12% · FY 2025",delay:200}),c.jsx(zs,{label:"Assets Under Management",labelAr:"الأصول المُدارة",prefix:"$",suffix:"B",value:47.2,decimals:1,change:"▲ 11% YoY",changePositive:!0,note:"Including third-party mandates · FY 2025",delay:300})]}),c.jsx("p",{className:"text-[10px] text-[#4A5B6E] mt-6 border-t border-[#E4E9F0] pt-4",children:"* Past performance is not indicative of future results. Financial data presented here is unaudited and subject to final audit confirmation. Refer to the 2025 Annual Report for full audited financial statements."})]})})}const Jb=[{Icon:Ld,type:"PDF",lang:"EN / AR",title:"Chairman's Message — Full Text",titleAr:"كلمة رئيس مجلس الإدارة — النص الكامل",description:"The complete text of H.E. the Chairman's annual message in bilingual PDF format, optimised for print and digital distribution.",size:"1.2 MB",action:"Download",ActionIcon:Fd},{Icon:Ld,type:"PDF",lang:"EN / AR",title:"Annual Report 2025",titleAr:"التقرير السنوي ٢٠٢٥",description:"The full Almanza Investment Company KSCC Annual Report for the fiscal year ended 31 December 2025, including audited financial statements.",size:"8.4 MB",action:"Download",ActionIcon:Fd},{Icon:Ex,type:"Video / PDF",lang:"AR · EN Subtitles",title:"Chairman's Address — AGM 2025",titleAr:"كلمة رئيس مجلس الإدارة في الجمعية العمومية",description:"Video recording and transcript of H.E. the Chairman's address at the 2025 Annual General Meeting of Almanza Investment Company KSCC.",size:"42 min · HD",action:"Watch / Download",ActionIcon:xx}];function eC(){const{isVisible:e,ref:t}=ao(.15),n=r=>{Nw.info(`Preparing "${r}" for download...`,{description:"The document will begin downloading shortly."})};return c.jsx("section",{className:"bg-[#F8FAFE] py-16 md:py-20","aria-label":"Downloadable Resources",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-10",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("span",{className:"text-[#C6A142] text-xs font-semibold uppercase tracking-widest",children:"Publications & Reports"})]}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0A2540]",style:{fontFamily:"Cormorant Garamond, serif",fontWeight:600},children:"Downloadable Resources"}),c.jsx("p",{className:"text-[#4A5B6E] mt-2 text-base",children:"Access official documents, reports, and media related to the Chairman's annual communication."})]}),c.jsx("div",{ref:t,className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:Jb.map((r,o)=>c.jsxs("div",{className:`bg-white rounded-2xl border border-[#E4E9F0] p-6 hover:border-[#C6A142] hover:shadow-lg transition-all duration-300 group flex flex-col ${e?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,style:{transitionDelay:`${o*100}ms`},children:[c.jsxs("div",{className:"flex items-start justify-between mb-5",children:[c.jsx("div",{className:"w-12 h-12 bg-[#F8FAFE] border border-[#E4E9F0] group-hover:border-[#C6A142] rounded-xl flex items-center justify-center transition-all duration-300",children:c.jsx(r.Icon,{className:"w-5 h-5 text-[#C6A142]"})}),c.jsxs("div",{className:"text-right",children:[c.jsx("span",{className:"block text-[10px] font-bold text-[#C6A142] bg-[#FBF6ED] px-2 py-1 rounded uppercase tracking-wider",children:r.type}),c.jsx("span",{className:"block text-[10px] text-[#4A5B6E] mt-1",children:r.lang})]})]}),c.jsx("h3",{className:"text-[#0A2540] font-semibold text-base mb-1 leading-tight",children:r.title}),c.jsx("p",{className:"font-arabic text-[#1E6F9F] text-sm mb-3",dir:"rtl",lang:"ar",children:r.titleAr}),c.jsx("p",{className:"text-[#4A5B6E] text-sm leading-relaxed flex-1 mb-5",children:r.description}),c.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-[#E4E9F0]",children:[c.jsx("span",{className:"text-xs text-[#4A5B6E]",children:r.size}),c.jsxs("button",{onClick:()=>n(r.title),className:"flex items-center gap-1.5 text-sm font-semibold text-[#C6A142] hover:text-[#0A2540] transition-colors group/btn",children:[r.action,c.jsx(r.ActionIcon,{className:"w-4 h-4 transition-transform group-hover/btn:translate-x-0.5"})]})]})]},r.title))})]})})}const tC=[{Icon:Em,tag:"Governance",title:"Board of Directors",titleAr:"مجلس الإدارة",description:"Meet the distinguished board members who provide strategic oversight and governance to Almanza Investment Company KSCC.",href:"/about-us/board-of-directors/",linkLabel:"View Board of Directors"},{Icon:gx,tag:"Investor Relations",title:"Investor Relations Overview",titleAr:"نظرة عامة على علاقات المستثمرين",description:"Access financial results, annual reports, shareholder information, AGM materials, and direct contact with our investor relations team.",href:"/investor-relations/overview/",linkLabel:"Visit Investor Relations"}];function nC(){const{isVisible:e,ref:t}=ao(.2);return c.jsx("section",{className:"bg-white py-16 md:py-20","aria-label":"Related Content",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-10",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("span",{className:"text-[#C6A142] text-xs font-semibold uppercase tracking-widest",children:"Continue Exploring"})]}),c.jsx("div",{ref:t,className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:tC.map((n,r)=>c.jsxs("a",{href:n.href,className:`group block bg-[#F8FAFE] rounded-2xl border border-[#E4E9F0] p-8 hover:border-[#C6A142] hover:shadow-lg transition-all duration-300 ${e?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,style:{transitionDelay:`${r*120}ms`},children:[c.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[c.jsx("div",{className:"w-12 h-12 bg-white border border-[#E4E9F0] group-hover:border-[#C6A142] rounded-xl flex items-center justify-center transition-all duration-300",children:c.jsx(n.Icon,{className:"w-5 h-5 text-[#C6A142]"})}),c.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-[#C6A142] bg-[#FBF6ED] px-2.5 py-1 rounded-full",children:n.tag})]}),c.jsx("h3",{className:"text-[#0A2540] font-bold text-xl mb-1",style:{fontFamily:"Cormorant Garamond, serif",fontWeight:600},children:n.title}),c.jsx("p",{className:"font-arabic text-[#1E6F9F] text-sm mb-4",dir:"rtl",lang:"ar",children:n.titleAr}),c.jsx("p",{className:"text-[#4A5B6E] text-sm leading-relaxed mb-6",children:n.description}),c.jsxs("div",{className:"flex items-center gap-2 text-[#C6A142] font-semibold text-sm group-hover:gap-3 transition-all duration-200",children:[n.linkLabel,c.jsx(wm,{className:"w-4 h-4"})]})]},n.title))})]})})}function rC(){return c.jsxs("section",{className:"relative bg-[#0A2540] py-20 overflow-hidden","aria-label":"Contact Investor Relations",children:[c.jsx("div",{className:"absolute inset-0 bg-cover bg-center opacity-10",style:{backgroundImage:`url(${Tg})`}}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0A2540] via-[#0A2540]/95 to-[#0A2540]"}),c.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-[#C6A142]/50 to-transparent"}),c.jsx("div",{className:"absolute bottom-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-[#C6A142]/30 to-transparent"}),c.jsx("div",{className:"absolute -left-20 top-1/2 -translate-y-1/2 w-80 h-80 rounded-full border border-[#C6A142]/10"}),c.jsx("div",{className:"absolute -right-20 top-1/2 -translate-y-1/2 w-96 h-96 rounded-full border border-[#C6A142]/8"}),c.jsxs("div",{className:"relative max-w-[1280px] mx-auto px-6 text-center",children:[c.jsx("div",{className:"flex justify-center mb-6",children:c.jsx("div",{className:"gold-divider"})}),c.jsx("h2",{className:"text-3xl md:text-5xl font-bold text-white mb-4 max-w-3xl mx-auto leading-tight",style:{fontFamily:"Cormorant Garamond, serif",fontWeight:600},children:"Questions for Our Chairman or Board?"}),c.jsx("p",{className:"text-2xl font-arabic text-[#1E6F9F] mb-6",dir:"rtl",lang:"ar",children:"هل لديك استفسارات لمجلس الإدارة؟"}),c.jsx("p",{className:"text-gray-300 text-base md:text-lg max-w-xl mx-auto mb-10 leading-relaxed",children:"Our dedicated Investor Relations team is available to address shareholder inquiries, institutional mandates, and media requests on behalf of the Board."}),c.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 mb-12",children:[c.jsxs("a",{href:"/contact/investor-relations/",className:"flex items-center gap-2 px-8 py-4 bg-[#C6A142] text-[#0A2540] font-bold text-base rounded-full hover:bg-[#E8C97A] transition-all duration-200 shadow-lg hover:shadow-xl group",children:["Contact Investor Relations",c.jsx(wm,{className:"w-4 h-4 transition-transform group-hover:translate-x-1"})]}),c.jsx("a",{href:"/investor-relations/annual-reports/",className:"flex items-center gap-2 px-8 py-4 border-2 border-white/30 text-white font-semibold text-base rounded-full hover:border-[#C6A142] hover:text-[#C6A142] transition-all duration-200",children:"View Annual Reports"})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-6 text-sm text-gray-400",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(bm,{className:"w-4 h-4 text-[#C6A142]"}),c.jsx("span",{children:"investors@almanza.com.kw"})]}),c.jsx("div",{className:"hidden sm:block w-px h-4 bg-gray-600"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Cm,{className:"w-4 h-4 text-[#C6A142]"}),c.jsx("span",{children:"+965 2200 XXXX (Investor Relations)"})]})]})]})]})}const xf=()=>c.jsxs("div",{className:"min-h-screen flex flex-col bg-white",children:[c.jsx(Vb,{}),c.jsxs("main",{className:"flex-1",children:[c.jsx(Wb,{}),c.jsx(Qb,{}),c.jsx(Gb,{}),c.jsx(qb,{}),c.jsx(Zb,{}),c.jsx(eC,{}),c.jsx(nC,{}),c.jsx(rC,{})]}),c.jsx(Hb,{})]}),oC=()=>{const e=Pg();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),c.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},sC=new J2,iC=()=>c.jsx(tb,{client:sC,children:c.jsxs(S2,{children:[c.jsx(iw,{}),c.jsx(zw,{richColors:!0,position:"top-right"}),c.jsx(Ub,{children:c.jsxs(zb,{children:[c.jsx(ti,{path:"/",element:c.jsx(xf,{})}),c.jsx(ti,{path:"/about-us/chairmans-message/",element:c.jsx(xf,{})}),c.jsx(ti,{path:"*",element:c.jsx(oC,{})})]})})]})});Hh(document.getElementById("root")).render(c.jsx(iC,{}));